Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-05-29 16:13:56 +0300
committerPhie <phie@phie.ovh>2019-05-29 16:13:56 +0300
commit2c0e5c5f1848ecb15d4fc372bfd93f411fa6eda7 (patch)
tree398063884e94fd7aff4fbdd00ea0d886a0625c51 /main.js
parent4cc060c625b3378cbf86bab519ad706b9818b3d0 (diff)
adapting electron > 5
Diffstat (limited to 'main.js')
-rw-r--r--main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.js b/main.js
index 9976710..776b660 100644
--- a/main.js
+++ b/main.js
@@ -68,7 +68,11 @@ function createWindow() {
width: 1030,
height: 600,
frame: settingsHelper.displayFrame(),
- icon: path.join(__dirname, 'img/512x512.png')
+ icon: path.join(__dirname, 'img/512x512.png'),
+ webPreferences: {
+ nodeIntegration: true,
+ webviewTag: true
+ }
})
win.setMenuBarVisibility(false)
win.setMenu(null)