Skip to content

Commit

Permalink
fix errors and opendevtools
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-online committed Jun 25, 2019
1 parent a60e179 commit d98032a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,14 @@ function createWindow () {
width: 800,
height: 550,
frame: false,
titleBarStyle: 'hidden'
titleBarStyle: 'hidden',
webPreferences: {
nodeIntegration: true
}
});
fs.writeFileSync(app.getPath('userData') + '/started.json', `{"started": true}`);
app.startWindow.loadURL('file:///' + __dirname + '/web/start/index.html');
app.startWindow.webContents.openDevTools();
//app.startWindow.webContents.openDevTools();
app.startWindow.webContents.on('dom-ready', () => {
app.startWindow.show()
});
Expand Down
3 changes: 1 addition & 2 deletions Desktop/web/loader/render.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Desktop/web/start/render.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d98032a

Please sign in to comment.