aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 9dfbb4d8f..dac8ec770 100644
--- a/src/index.js
+++ b/src/index.js
@@ -332,7 +332,7 @@ const createWindow = () => {
332 e.preventDefault(); 332 e.preventDefault();
333 333
334 if (isValidExternalURL(url)) { 334 if (isValidExternalURL(url)) {
335 shell.openExternal(url); 335 shell.openExternal(url);
336 } 336 }
337 }); 337 });
338 338
@@ -411,6 +411,15 @@ ipcMain.on('feature-basic-auth-credentials', (e, { user, password }) => {
411 authCallback = noop; 411 authCallback = noop;
412}); 412});
413 413
414ipcMain.on('open-browser-window', (e, {disposition, url}, serviceId) => {
415 if (disposition === 'foreground-tab') {
416 let serviceSession = session.fromPartition(`persist:service-${serviceId}`)
417 let child = new BrowserWindow({ parent: mainWindow, webPreferences: {session: serviceSession}});
418 child.show();
419 child.loadURL(url);
420 }
421 debug('Received open-browser-window', disposition, url);
422});
414 423
415ipcMain.on('modifyRequestHeaders', (e, { modifiedRequestHeaders, serviceId }) => { 424ipcMain.on('modifyRequestHeaders', (e, { modifiedRequestHeaders, serviceId }) => {
416 debug('Received modifyRequestHeaders', modifiedRequestHeaders, serviceId); 425 debug('Received modifyRequestHeaders', modifiedRequestHeaders, serviceId);