Simplify loading according to new electron api

pull/73/head
Mikael Finstad 8 years ago
parent f202a983f9
commit a5ef299f4e

@ -22,11 +22,7 @@ function createWindow() {
mainWindow = new BrowserWindow({
darkTheme: true,
});
mainWindow.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true,
}));
mainWindow.loadFile('index.html');
mainWindow.on('closed', () => {
// Dereference the window object, usually you would store windows

Loading…
Cancel
Save