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