1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 02:12:30 +01:00

Simplify loading according to new electron api

This commit is contained in:
Mikael Finstad 2018-05-21 00:50:05 +02:00
parent f202a983f9
commit a5ef299f4e

View File

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