Enable the Chromium sandbox (#47)

According to recently added documentation, `sandbox: true` creates a sandbox 'compatible' renderer process, but doesn't actually enable the sandbox. The command line argument I've added is also required.

See discussion here: https://github.com/electron/electron/pull/9054#discussion_r108695652
This commit is contained in:
Colin Eberhardt 2017-03-30 01:42:24 +01:00 committed by Lynn
parent 27d58a94d7
commit be655b3076

View File

@ -6,8 +6,8 @@
"author": "Symphony", "author": "Symphony",
"main": "js/main.js", "main": "js/main.js",
"scripts": { "scripts": {
"dev": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron .", "dev": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron . --enable-sandbox",
"demo": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html", "demo": "npm run browserify-preload && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html --enable-sandbox",
"dist-mac": "npm run prebuild && build --mac", "dist-mac": "npm run prebuild && build --mac",
"dist-win": "npm run prebuild && build --win --x64", "dist-win": "npm run prebuild && build --win --x64",
"dist-win-x86": "npm run prebuild && build --win --ia32", "dist-win-x86": "npm run prebuild && build --win --ia32",