From 60b4566be47d784ccec8dd9c031d66ed2fa30032 Mon Sep 17 00:00:00 2001 From: JPSO <66487668+Joao-Pedro-S@users.noreply.github.com> Date: Tue, 24 Nov 2020 10:51:17 -0300 Subject: [PATCH] Remove useless path.join() --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 16fa2e25..45906903 100644 --- a/main.js +++ b/main.js @@ -29,11 +29,11 @@ function initialize () { } if (process.platform === 'linux') { - windowOptions.icon = path.join(__dirname, '/assets/app-icon/png/512.png') + windowOptions.icon = './assets/app-icon/png/512.png' } mainWindow = new BrowserWindow(windowOptions) - mainWindow.loadURL(path.join('file://', __dirname, '/index.html')) + mainWindow.loadURL('index.html') // Launch fullscreen with DevTools open, usage: npm run debug if (debug) { @@ -86,7 +86,7 @@ function makeSingleInstance () { // Require each JS file in the main-process dir function loadDemos () { - const files = glob.sync(path.join(__dirname, 'main-process/**/*.js')) + const files = glob.sync('./main-process/**/*.js') files.forEach((file) => { require(file) }) }