aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {