diff options
author | stnkl <stnkl@users.noreply.github.com> | 2021-06-03 00:05:30 +0200 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-06-03 07:00:12 +0530 |
commit | 4cacab45ba849aed44a46cc797d6599ce530739b (patch) | |
tree | 4f2688803b65bef1680248e4ef4ef0a01ee49e6f /src/index.js | |
parent | Allow nightlies as pre-releases (possible fix for broken updater in nightlies). (diff) | |
download | ferdium-app-4cacab45ba849aed44a46cc797d6599ce530739b.tar.gz ferdium-app-4cacab45ba849aed44a46cc797d6599ce530739b.tar.zst ferdium-app-4cacab45ba849aed44a46cc797d6599ce530739b.zip |
Adjust link opening behavior
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 14 |
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 | ||
441 | ipcMain.on('open-browser-window', (e, { disposition, url, serviceId }) => { | 441 | ipcMain.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 | ||
451 | ipcMain.on('modifyRequestHeaders', (e, { modifiedRequestHeaders, serviceId }) => { | 449 | ipcMain.on('modifyRequestHeaders', (e, { modifiedRequestHeaders, serviceId }) => { |