diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-06-14 20:07:29 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-06-14 20:07:29 +0200 |
commit | 0d51dee29c0751abdebfbbb73fc0c57c0437593f (patch) | |
tree | dffcd7eee0dae940e84bc02af305220daa920dfb | |
parent | 8d71dfe26e9f1cfb5a7043555364fe39982fddd5 (diff) |
As of electron 5, you need to enable node integration explicitelyadd-node-integration
-rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -84,8 +84,11 @@ app.on('ready', createWindow) // called when electron has initialized // This will create our app window, no surprise there function createWindow () { mainWindow = new BrowserWindow({ - width: 1024, - height: 768 + width: 1024, + height: 768, + webPreferencs: { + nodeIntegration: true + } }) // display the index.html file |