mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +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();
|
||||
});
|
||||
|
||||
const dir = __dirname.split(path.sep).pop();
|
||||
|
||||
if (dir === 'generated') {
|
||||
mainWindow.loadURL(
|
||||
`file://${path.join(__dirname, '..', 'lib', 'gui', 'app', 'index.html')}`,
|
||||
);
|
||||
} else {
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, 'app', 'index.html')}`);
|
||||
}
|
||||
mainWindow.loadURL(
|
||||
`file://${path.join(__dirname, '..', 'lib', 'gui', 'app', 'index.html')}`,
|
||||
);
|
||||
|
||||
const page = mainWindow.webContents;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user