From 90885d1d8cf97ea62f9c4d6a508a678fd7cd14ef Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Mon, 6 Mar 2017 00:22:20 +0530 Subject: [PATCH] simply spec --- spec/static/main.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/spec/static/main.js b/spec/static/main.js index 1e81ddc8cf..cfc21249b5 100644 --- a/spec/static/main.js +++ b/spec/static/main.js @@ -307,18 +307,7 @@ ipcMain.on('handle-unhandled-rejection', (event, message) => { ipcMain.on('navigate-with-pending-entry', (event, id) => { const w = BrowserWindow.fromId(id) - const source = ` - - Link - - - ` - - w.webContents.on('did-fail-load', () => { + w.webContents.on('did-start-loading', () => { w.loadURL('about:blank') }) @@ -329,7 +318,7 @@ ipcMain.on('navigate-with-pending-entry', (event, id) => { }) w.webContents.session.clearHostResolverCache(() => { - w.loadURL(`data:text/html,${source}`) + w.loadURL('http://host') }) })