From 04116a087b84dd84f4461f74f079833c57dfa479 Mon Sep 17 00:00:00 2001 From: Bennett Date: Wed, 23 Sep 2020 00:27:09 +0200 Subject: Update adaptable dark mode to work on all platforms (#834) Co-authored-by: Amine Mouafik --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/index.js') 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 = () => { e.preventDefault(); if (isValidExternalURL(url)) { - shell.openExternal(url); + shell.openExternal(url); } }); @@ -411,10 +411,10 @@ ipcMain.on('feature-basic-auth-credentials', (e, { user, password }) => { authCallback = noop; }); -ipcMain.on('open-browser-window', (e, {disposition, url}, serviceId) => { +ipcMain.on('open-browser-window', (e, { disposition, url }, serviceId) => { if (disposition === 'foreground-tab') { - let serviceSession = session.fromPartition(`persist:service-${serviceId}`) - let child = new BrowserWindow({ parent: mainWindow, webPreferences: {session: serviceSession}}); + const serviceSession = session.fromPartition(`persist:service-${serviceId}`); + const child = new BrowserWindow({ parent: mainWindow, webPreferences: { session: serviceSession } }); child.show(); child.loadURL(url); } -- cgit v1.2.3-70-g09d2