Update deprecated electron loadUrl usage

Remove crash reporter
Remove commented code
This commit is contained in:
Jia Hao 2016-01-21 11:30:37 +08:00
parent 7bfedc823b
commit 877ee060f6
1 changed files with 1 additions and 4 deletions

View File

@ -12,7 +12,6 @@ var ipc = electron.ipcMain;
var buildMenu = require('./buildMenu');
const APP_ARGS_FILE_PATH = __dirname + '/nativefier.json';
require('crash-reporter').start();
var mainWindow = null;
@ -38,10 +37,8 @@ app.on('ready', function() {
buildMenu(app, mainWindow);
// uncomment to show dev tools for the main window
//mainWindow.openDevTools();
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.loadURL('file://' + __dirname + '/index.html');
mainWindow.webContents.on('did-finish-load', function() {
mainWindow.webContents.send('params', JSON.stringify(appArgs));