Fix the deprecation warning

https://github.com/atom/electron/pull/3424
This commit is contained in:
laiso 2015-11-24 21:23:04 +09:00 committed by Kevin Sawicki
parent 25e99f79b1
commit ceec7c3b05
1 changed files with 1 additions and 1 deletions

View File

@ -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();