diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/index.js b/src/index.js index 449bbad19..2ee404c0b 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -336,22 +336,7 @@ app.on('login', (event, webContents, request, authInfo, callback) => { | |||
336 | debug('browser login event', authInfo); | 336 | debug('browser login event', authInfo); |
337 | event.preventDefault(); | 337 | event.preventDefault(); |
338 | 338 | ||
339 | if (authInfo.isProxy && authInfo.scheme === 'basic') { | 339 | if (!authInfo.isProxy && authInfo.scheme === 'basic') { |
340 | debug('Sending service echo ping'); | ||
341 | webContents.send('get-service-id'); | ||
342 | |||
343 | ipcMain.once('service-id', (e, id) => { | ||
344 | debug('Received service id', id); | ||
345 | |||
346 | const ps = proxySettings.get(id); | ||
347 | if (ps) { | ||
348 | debug('Sending proxy auth callback for service', id); | ||
349 | callback(ps.user, ps.password); | ||
350 | } else { | ||
351 | debug('No proxy auth config found for', id); | ||
352 | } | ||
353 | }); | ||
354 | } else if (authInfo.scheme === 'basic') { | ||
355 | debug('basic auth handler', authInfo); | 340 | debug('basic auth handler', authInfo); |
356 | basicAuthHandler(mainWindow, authInfo); | 341 | basicAuthHandler(mainWindow, authInfo); |
357 | } | 342 | } |