debt - port over some electron6 changes

This commit is contained in:
Benjamin Pasero
2019-07-08 08:43:11 +02:00
parent d50852db1a
commit df5b5cecfe
9 changed files with 36 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ const path = require('path');
let window = null;
app.once('ready', () => {
window = new BrowserWindow({ width: 800, height: 600 });
window = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true, webviewTag: true } });
window.setMenuBarVisibility(false);
window.loadURL(url.format({ pathname: path.join(__dirname, 'index.html'), protocol: 'file:', slashes: true }));
// window.webContents.openDevTools();