Skip to content

Commit 476cc9e

Browse files
committed
Updating ContextIsolation as per the comment from @danatcofo. "on electron v12 WebPreferences.contextIsolation defaults to true… this means that window.require() will no longer function"
1 parent fb8ca94 commit 476cc9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ElectronNET.API/Entities/WebPreferences.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ public class WebPreferences
185185
/// Context' entry in the combo box at the top of the Console tab. This option is
186186
/// currently experimental and may change or be removed in future Electron releases.
187187
/// </summary>
188-
[DefaultValue(false)]
189-
public bool ContextIsolation { get; set; }
188+
[DefaultValue(true)]
189+
public bool ContextIsolation { get; set; } = true;
190190

191191
/// <summary>
192192
/// Whether to use native window.open(). Defaults to false. This option is currently experimental.

0 commit comments

Comments
 (0)