diff options
author | Bennett <hello@vantezzen.io> | 2020-09-23 00:27:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 23:27:09 +0100 |
commit | 04116a087b84dd84f4461f74f079833c57dfa479 (patch) | |
tree | 63e47294856b65bedf5ca6ed92a3b0f3b386d323 /src/index.js | |
parent | Upgrading to Electron 9 (#809) (diff) | |
download | ferdium-app-04116a087b84dd84f4461f74f079833c57dfa479.tar.gz ferdium-app-04116a087b84dd84f4461f74f079833c57dfa479.tar.zst ferdium-app-04116a087b84dd84f4461f74f079833c57dfa479.zip |
Update adaptable dark mode to work on all platforms (#834)
Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js index dac8ec770..e39434a3b 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,10 +411,10 @@ ipcMain.on('feature-basic-auth-credentials', (e, { user, password }) => { | |||
411 | authCallback = noop; | 411 | authCallback = noop; |
412 | }); | 412 | }); |
413 | 413 | ||
414 | ipcMain.on('open-browser-window', (e, {disposition, url}, serviceId) => { | 414 | ipcMain.on('open-browser-window', (e, { disposition, url }, serviceId) => { |
415 | if (disposition === 'foreground-tab') { | 415 | if (disposition === 'foreground-tab') { |
416 | let serviceSession = session.fromPartition(`persist:service-${serviceId}`) | 416 | const serviceSession = session.fromPartition(`persist:service-${serviceId}`); |
417 | let child = new BrowserWindow({ parent: mainWindow, webPreferences: {session: serviceSession}}); | 417 | const child = new BrowserWindow({ parent: mainWindow, webPreferences: { session: serviceSession } }); |
418 | child.show(); | 418 | child.show(); |
419 | child.loadURL(url); | 419 | child.loadURL(url); |
420 | } | 420 | } |