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.
This commit is contained in:
Yuya Ochiai 2017-10-24 21:22:39 +09:00
parent ea746bad29
commit e24cddcf5a

View file

@ -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];