mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
Update deprecated electron loadUrl usage
Remove crash reporter Remove commented code
This commit is contained in:
parent
7bfedc823b
commit
877ee060f6
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user