Protocol handler for deep linking in desktop app

This commit is contained in:
David Meza
2017-10-09 11:12:21 -05:00
parent fb9a005f39
commit 40892e0430
5 changed files with 52 additions and 9 deletions

View File

@@ -42,6 +42,7 @@ function createMainWindow(config, options) {
});
const mainWindow = new BrowserWindow(windowOptions);
mainWindow.deeplinkingUrl = options.deeplinkingUrl;
const indexURL = global.isDev ? 'http://localhost:8080/browser/index.html' : `file://${app.getAppPath()}/browser/index.html`;
mainWindow.loadURL(indexURL);