From 0d51dee29c0751abdebfbbb73fc0c57c0437593f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 14 Jun 2019 20:07:29 +0200 Subject: As of electron 5, you need to enable node integration explicitely --- README.md | 7 +++++-- 1 file 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 -- cgit v1.2.3