summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-06-14 20:07:29 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-06-14 20:07:29 +0200
commit0d51dee29c0751abdebfbbb73fc0c57c0437593f (patch)
treedffcd7eee0dae940e84bc02af305220daa920dfb
parent8d71dfe26e9f1cfb5a7043555364fe39982fddd5 (diff)
As of electron 5, you need to enable node integration explicitelyadd-node-integration
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 1ee1221..7e3313b 100644
--- a/README.md
+++ b/README.md
@@ -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