From 6ee94bcf60e3363bd12ff0b47c74fd2f4e63c572 Mon Sep 17 00:00:00 2001 From: Rainy <939029835@qq.com> Date: Thu, 17 Dec 2020 08:35:12 +0800 Subject: [PATCH] Compatible with electron version 11. Compatible with electron version 11. --- templates/electron/haxe/ElectronSetup.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/electron/haxe/ElectronSetup.hx b/templates/electron/haxe/ElectronSetup.hx index 4334e6929..f786b0f12 100644 --- a/templates/electron/haxe/ElectronSetup.hx +++ b/templates/electron/haxe/ElectronSetup.hx @@ -51,6 +51,9 @@ class ElectronSetup { var config:Dynamic = { + webPreferences:{ + nodeIntegration:true + }, fullscreen: window.fullscreen, frame: frame, resizable: window.resizable,