summaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
authorLibravatar André Oliveira <oliveira.andrerodrigues95@gmail.com>2022-07-07 15:00:18 +0100
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-07 22:12:12 +0530
commit48709694379b877db4bdb58e818767b8dfc79d9d (patch)
tree334bac53db7f62124c6f3e45b0a7a2cb22dbe954 /src/index.ts
parentUpgrade 'pnpm' to '7.5.0' (diff)
downloadferdium-app-48709694379b877db4bdb58e818767b8dfc79d9d.tar.gz
ferdium-app-48709694379b877db4bdb58e818767b8dfc79d9d.tar.zst
ferdium-app-48709694379b877db4bdb58e818767b8dfc79d9d.zip
Workaround for 71c5237 (#406)
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index 739f653d4..4b3c81faa 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -270,7 +270,12 @@ const createWindow = () => {
270 if (isWindows) { 270 if (isWindows) {
271 onDidLoad((window: BrowserWindow) => { 271 onDidLoad((window: BrowserWindow) => {
272 const url = process.argv.slice(1); 272 const url = process.argv.slice(1);
273 if (url) { 273 if (
274 url &&
275 // The next line is a workaround after this 71c5237 [chore: Mobx & React-Router upgrade (#406)].
276 // For some reason, the app won't start until because it's trying to route to './build'.
277 url.toString() !== './build'
278 ) {
274 handleDeepLink(window, url.toString()); 279 handleDeepLink(window, url.toString());
275 } 280 }
276 }); 281 });