From e042465a04f63c42fbfaf33f8b5aabef198b25c6 Mon Sep 17 00:00:00 2001 From: icebox Date: Sun, 8 May 2016 09:35:40 +0200 Subject: [PATCH] fix(d3): fix d3 hack for electron env index.html, and the scripts loaded, is used in the usual browser env and in the electron one. For d3 there was an hack to load it correctly in the electron env. Setting node integration to the browser window, when it runs in the electron env, d3 is loaded without any hack. --- main.js | 3 ++- src/client/index.html | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 7ed23a0c..1848c1b3 100644 --- a/main.js +++ b/main.js @@ -12,7 +12,8 @@ app.on("ready", function () { frame: false, height: 800, icon: "src/client/favicon.ico", - width: 1450 + width: 1450, + "node-integration": false }); mainWindow.loadURL("http://localhost:8000"); diff --git a/src/client/index.html b/src/client/index.html index c9ffc0d6..2cd9eeb8 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -27,7 +27,6 @@ -