Skip to content

The swiss army knife of lossless video/audio editing

Simplify loading according to new electron api

Mikael Finstada5ef299f4ebd
diff --git a/src/index.js b/src/index.js
index 6383322b..03faa43d 100644
--- a/src/index.js
+++ b/src/index.js
@@ -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