aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-13 09:07:33 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-13 07:32:56 +0000
commitb2eef1daaa41313257e3f439d4d5604314c9ae2c (patch)
tree5fc0d7ff2d9c94d783ad166307f9e550a34086a2 /src/index.js
parentchore: Replace old '@meetfranz/electron-notification-state' with 'macos-notif... (diff)
downloadferdium-app-b2eef1daaa41313257e3f439d4d5604314c9ae2c.tar.gz
ferdium-app-b2eef1daaa41313257e3f439d4d5604314c9ae2c.tar.zst
ferdium-app-b2eef1daaa41313257e3f439d4d5604314c9ae2c.zip
fix(App): Fix app focus detection
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index d97f2cf09..b1d4907cc 100644
--- a/src/index.js
+++ b/src/index.js
@@ -455,7 +455,12 @@ ipcMain.on('open-browser-window', (e, { url, serviceId }) => {
455 const serviceSession = session.fromPartition(`persist:service-${serviceId}`); 455 const serviceSession = session.fromPartition(`persist:service-${serviceId}`);
456 const child = new BrowserWindow({ 456 const child = new BrowserWindow({
457 parent: mainWindow, 457 parent: mainWindow,
458 webPreferences: { session: serviceSession }, 458 webPreferences: {
459 session: serviceSession,
460 // TODO: Aren't these needed here?
461 // contextIsolation: false,
462 // enableRemoteModule: true,
463 },
459 }); 464 });
460 child.show(); 465 child.show();
461 child.loadURL(url); 466 child.loadURL(url);