summaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-24 06:57:50 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-05-24 16:40:43 +0530
commite245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch)
treed684777b3fde5470c9f99304a9f022422ffb8045 /src/index.ts
parent6.3.0-nightly.9 [skip ci] (diff)
downloadferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip
Upgrade npm modules
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts
index bb6d64d1e..182a281fa 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -108,9 +108,7 @@ const liftSingleInstanceLock = retrieveSettingValue(
108const gotTheLock = liftSingleInstanceLock 108const gotTheLock = liftSingleInstanceLock
109 ? true 109 ? true
110 : app.requestSingleInstanceLock(); 110 : app.requestSingleInstanceLock();
111if (!gotTheLock) { 111if (gotTheLock) {
112 app.quit();
113} else {
114 app.on('second-instance', (_event, argv) => { 112 app.on('second-instance', (_event, argv) => {
115 // Someone tried to run a second instance, we should focus our window. 113 // Someone tried to run a second instance, we should focus our window.
116 if (mainWindow) { 114 if (mainWindow) {
@@ -152,6 +150,8 @@ if (!gotTheLock) {
152 } 150 }
153 } 151 }
154 }); 152 });
153} else {
154 app.quit();
155} 155}
156 156
157// Fix Unity indicator issue 157// Fix Unity indicator issue