Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

fix: Remove confusing path.join() #473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) })
}

Expand Down