mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 05:36:34 +00:00
Remove useless if
Change-type: patch
This commit is contained in:
parent
4ee83d9da4
commit
be729c87af
@ -104,15 +104,9 @@ function createMainWindow() {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
const dir = __dirname.split(path.sep).pop();
|
|
||||||
|
|
||||||
if (dir === 'generated') {
|
|
||||||
mainWindow.loadURL(
|
mainWindow.loadURL(
|
||||||
`file://${path.join(__dirname, '..', 'lib', 'gui', 'app', 'index.html')}`,
|
`file://${path.join(__dirname, '..', 'lib', 'gui', 'app', 'index.html')}`,
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
mainWindow.loadURL(`file://${path.join(__dirname, 'app', 'index.html')}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const page = mainWindow.webContents;
|
const page = mainWindow.webContents;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user