Commit 412243a2 authored by Stanley Shyiko's avatar Stanley Shyiko

Fixed sporadic timeouts caused by loadURL having no effect

parent faf1e1a2
......@@ -105,7 +105,10 @@ app.on('ready', function () {
});
electron.ipcMain.on('devtools-loaded', function (event) {
setTimeout(function () { bw.loadURL(url); }, 0);
setTimeout(function () {
// bw.loadURL proved to be unreliable on Debian 8 (half of the time it has no effect)
bw.webContents.executeJavaScript('location = ' + JSON.stringify(url));
}, 0);
});
bw.openDevTools();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment