diff options
author | 2020-06-19 18:52:47 +0200 | |
---|---|---|
committer | 2020-06-19 18:52:47 +0200 | |
commit | 8fa129cd5a93b7033ec72b207c95895496107cae (patch) | |
tree | ecce047bb4663f8face6924c15a01d0212154428 | |
parent | Merge branch 'develop' (diff) | |
download | ferdium-app-8fa129cd5a93b7033ec72b207c95895496107cae.tar.gz ferdium-app-8fa129cd5a93b7033ec72b207c95895496107cae.tar.zst ferdium-app-8fa129cd5a93b7033ec72b207c95895496107cae.zip |
Fix lint5.6.0-beta.1
-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 | } |