From 476cc9e5057d3411b570c518b6b0de545c89dfd6 Mon Sep 17 00:00:00 2001 From: tub5 Date: Mon, 28 Jun 2021 15:55:16 +0100 Subject: [PATCH] =?UTF-8?q?Updating=20ContextIsolation=20as=20per=20the=20?= =?UTF-8?q?comment=20from=20@danatcofo.=20"on=20electron=20v12=20WebPrefer?= =?UTF-8?q?ences.contextIsolation=20defaults=20to=20true=E2=80=A6=20this?= =?UTF-8?q?=20means=20that=20window.require()=20will=20no=20longer=20funct?= =?UTF-8?q?ion"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectronNET.API/Entities/WebPreferences.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElectronNET.API/Entities/WebPreferences.cs b/ElectronNET.API/Entities/WebPreferences.cs index a93c032..00e33f2 100644 --- a/ElectronNET.API/Entities/WebPreferences.cs +++ b/ElectronNET.API/Entities/WebPreferences.cs @@ -185,8 +185,8 @@ namespace ElectronNET.API.Entities /// 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. /// - [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.