summaryrefslogtreecommitdiff
path: root/electron_js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-02-29 11:38:20 -0500
committerpliablepixels <pliablepixels@gmail.com>2016-02-29 11:38:20 -0500
commit485b1db09019612e6da34804d1c76fd91f048287 (patch)
tree50bb3d9a67a029071e8a494b85d504f75ac6e3ff /electron_js
parent05e699b433ff4b9df9f6927c12a4950f379bb5a8 (diff)
initial code #179
Former-commit-id: 2b35afdc0c733beb2ea05cd6972f58228c8f272b
Diffstat (limited to 'electron_js')
-rw-r--r--electron_js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/electron_js/main.js b/electron_js/main.js
index b2c53b41..65093313 100644
--- a/electron_js/main.js
+++ b/electron_js/main.js
@@ -42,7 +42,7 @@ app.on('activate', function()
{
if (mainWindow==null)
{
- mainWindow = new BrowserWindow({width:1024, height:900});
+ mainWindow = new BrowserWindow({ 'node-integration':false, 'width':1024, 'height':900});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.on('closed', function() {
@@ -55,7 +55,7 @@ app.on('activate', function()
// initialization and is ready to create browser windows.
app.on('ready', function() {
// Create the browser window.
- mainWindow = new BrowserWindow({width:1024, height:900});
+ mainWindow = new BrowserWindow({'node-integration':false, 'width':1024, 'height':900});
// and load the index.html of the app.
mainWindow.loadUrl('file://' + __dirname + '/index.html');