aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/index.ts7
-rw-r--r--src/lib/Menu.js2
2 files changed, 7 insertions, 2 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 });
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index c2b43bd5c..78849d616 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -638,7 +638,7 @@ class FranzMenu {
638 } 638 }
639 639
640 get template() { 640 get template() {
641 return this.currentTemplate.toJS(); 641 return JSON.parse(JSON.stringify(this.currentTemplate));
642 } 642 }
643 643
644 _build() { 644 _build() {