URI handling (WIP) #116

Merged
alexliebowitz merged 5 commits from uri-handling into master 2017-05-08 16:11:19 +02:00
Showing only changes of commit 2761ebbd92 - Show all commits

View file

@ -114,11 +114,12 @@ function getPidsForProcessName(name) {
function createWindow () {
win = new BrowserWindow({backgroundColor: '#155B4A', minWidth: 800, minHeight: 600 }) //$color-primary
win.maximize()
// win.webContents.openDevTools();
win.loadURL(`file://${__dirname}/dist/index.html`)
if (openUri) { // We stored and received a URI that an external app requested before we had a window object
win.on('did-finish-load', () => {
win.webContents.on('did-finish-load', () => {
win.webContents.send('open-uri-requested', openUri);
});
}