From be729c87af68b0822b2c0fac04112bdc1b743fc5 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Fri, 13 Mar 2020 13:58:41 +0100 Subject: [PATCH] Remove useless if Change-type: patch --- lib/gui/etcher.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/gui/etcher.ts b/lib/gui/etcher.ts index 64e99892..0fdee889 100644 --- a/lib/gui/etcher.ts +++ b/lib/gui/etcher.ts @@ -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;