From e24cddcf5ab3391ac6688aa320d9b5464a4953af Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Tue, 24 Oct 2017 21:22:39 +0900 Subject: [PATCH] Disable deeplinking when the app is running in development mode In that case, electron.exe is registered as the protocol client. The app would not work because app dir is not set when launching. --- src/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index e752e21f..2c6e25b2 100644 --- a/src/main.js +++ b/src/main.js @@ -334,7 +334,9 @@ ipcMain.on('download-url', (event, URL) => { }); }); -if (protocols && protocols[0] && +if (isDev) { + console.log('In development mode, deeplinking is disabled'); +} else if (protocols && protocols[0] && protocols[0].schemes && protocols[0].schemes[0] ) { scheme = protocols[0].schemes[0];