The swiss army knife of lossless video/audio editing
Fix loading of index.html
Mikael Finstad8fccd53a1854
diff --git a/src/index.js b/src/index.jsindex c243ce82..2011c6d4 100644--- a/src/index.js+++ b/src/index.js@@ -1,5 +1,7 @@const electron = require('electron'); // eslint-disable-lineconst isDev = require('electron-is-dev');+const path = require('path');+const url = require('url');const menu = require('./menu');@@ -18,7 +20,11 @@ function createWindow() {mainWindow = new BrowserWindow({darkTheme: true,});- mainWindow.loadURL(`file://${__dirname}/index.html`);+ mainWindow.loadURL(url.format({+ pathname: path.join(__dirname, 'index.html'),+ protocol: 'file:',+ slashes: true,+ }));mainWindow.on('closed', () => {// Dereference the window object, usually you would store windows