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:
parent
ea746bad29
commit
e24cddcf5a
|
@ -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]
|
protocols[0].schemes && protocols[0].schemes[0]
|
||||||
) {
|
) {
|
||||||
scheme = protocols[0].schemes[0];
|
scheme = protocols[0].schemes[0];
|
||||||
|
|
Loading…
Reference in a new issue