From ceec7c3b054e652e5669c69350bbc346e8e167fa Mon Sep 17 00:00:00 2001 From: laiso Date: Tue, 24 Nov 2015 21:23:04 +0900 Subject: [PATCH] Fix the deprecation warning https://github.com/atom/electron/pull/3424 --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 1660e3f..068bdf8 100644 --- a/main.js +++ b/main.js @@ -26,7 +26,7 @@ app.on('ready', function() { mainWindow = new BrowserWindow({width: 800, height: 600}); // and load the index.html of the app. - mainWindow.loadUrl(`file://${__dirname}/index.html`); + mainWindow.loadURL(`file://${__dirname}/index.html`); // Open the DevTools. mainWindow.webContents.openDevTools();