Skip to content

Commit

Permalink
Main process fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzzzen committed May 24, 2019
1 parent 124f15f commit e471d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ else {
function createWindow () {
win = new BrowserWindow({ width: 600, height: 600, frame: false, icon: __dirname + '/build/icon.' + (process.platform === 'win32' ? 'ico' : 'png'), backgroundColor: '#000A13', maximizable: false, resizable: false, show: false, webPreferences: { nodeIntegration: true } });

win.loadURL(url.format({
pathname: path.join(__dirname, 'src/index.html'), // important
win.loadURL(require('url').format({
pathname: require('path').join(__dirname, 'src/index.html'), // important
protocol: 'file:',
slashes: true,
}));
Expand Down

0 comments on commit e471d92

Please sign in to comment.