From 8f5a7856d5dadb228f5d834674f35cc137bebeea Mon Sep 17 00:00:00 2001 From: rafael-aero Date: Mon, 28 Jun 2021 16:30:24 +0200 Subject: [PATCH] use new Electron 12 default values --- ElectronNET.API/Entities/WebPreferences.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ElectronNET.API/Entities/WebPreferences.cs b/ElectronNET.API/Entities/WebPreferences.cs index a93c032..ca5e24e 100644 --- a/ElectronNET.API/Entities/WebPreferences.cs +++ b/ElectronNET.API/Entities/WebPreferences.cs @@ -15,10 +15,10 @@ namespace ElectronNET.API.Entities public bool DevTools { get; set; } = true; /// - /// Whether node integration is enabled. Required to enable IPC. Default is true. + /// Whether node integration is enabled. Required to enable IPC. Default is false. /// - [DefaultValue(true)] - public bool NodeIntegration { get; set; } = true; + [DefaultValue(false)] + public bool NodeIntegration { get; set; } = false; /// /// Whether node integration is enabled in web workers. Default is false. @@ -184,9 +184,10 @@ namespace ElectronNET.API.Entities /// can access this context in the dev tools by selecting the 'Electron Isolated /// Context' entry in the combo box at the top of the Console tab. This option is /// currently experimental and may change or be removed in future Electron releases. + /// Default value is true. /// - [DefaultValue(false)] - public bool ContextIsolation { get; set; } + [DefaultValue(true)] + public bool ContextIsolation { get; set; } = true; /// /// Whether to use native window.open(). Defaults to false. This option is currently experimental.