From e2126a60ad287e76a24c44242b80699e49e8fb0e Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 2 Oct 2019 21:38:26 +0200 Subject: fix(Service Proxies): Fix proxy setting rehydration --- src/index.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index d9d51fd5b..7de7a5e1c 100644 --- a/src/index.js +++ b/src/index.js @@ -331,22 +331,7 @@ app.on('login', (event, webContents, request, authInfo, callback) => { debug('browser login event', authInfo); event.preventDefault(); - if (authInfo.isProxy && authInfo.scheme === 'basic') { - debug('Sending service echo ping'); - webContents.send('get-service-id'); - - ipcMain.once('service-id', (e, id) => { - debug('Received service id', id); - - const ps = proxySettings.get(id); - if (ps) { - debug('Sending proxy auth callback for service', id); - callback(ps.user, ps.password); - } else { - debug('No proxy auth config found for', id); - } - }); - } else if (authInfo.scheme === 'basic') { + if (!authInfo.isProxy && authInfo.scheme === 'basic') { debug('basic auth handler', authInfo); basicAuthHandler(mainWindow, authInfo); } -- cgit v1.2.3-70-g09d2