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:
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…
Reference in New Issue
Block a user