aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/index.js b/src/index.js
index 018bdc059..21cf61c0c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -438,14 +438,12 @@ ipcMain.on('feature-basic-auth-credentials', (e, { user, password }) => {
438 authCallback = noop; 438 authCallback = noop;
439}); 439});
440 440
441ipcMain.on('open-browser-window', (e, { disposition, url, serviceId }) => { 441ipcMain.on('open-browser-window', (e, { url, serviceId }) => {
442 if (disposition === 'foreground-tab') { 442 const serviceSession = session.fromPartition(`persist:service-${serviceId}`);
443 const serviceSession = session.fromPartition(`persist:service-${serviceId}`); 443 const child = new BrowserWindow({ parent: mainWindow, webPreferences: { session: serviceSession } });
444 const child = new BrowserWindow({ parent: mainWindow, webPreferences: { session: serviceSession } }); 444 child.show();
445 child.show(); 445 child.loadURL(url);
446 child.loadURL(url); 446 debug('Received open-browser-window', url);
447 }
448 debug('Received open-browser-window', disposition, url);
449}); 447});
450 448
451ipcMain.on('modifyRequestHeaders', (e, { modifiedRequestHeaders, serviceId }) => { 449ipcMain.on('modifyRequestHeaders', (e, { modifiedRequestHeaders, serviceId }) => {