Skip to content

Commit 8a0276d

Browse files
DanDan
Dan
authored and
Dan
committed
Add ability to enable remote module in browser
The jump from Election 9x to 11x changed the default setting. This exposes it so that user can re-enable it if needed.
1 parent e941965 commit 8a0276d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,6 @@ paket-files/
260260
# Python Tools for Visual Studio (PTVS)
261261
__pycache__/
262262
*.pyc
263+
264+
# Mac Only settings file
265+
.DS_Store

ElectronNET.API/Entities/WebPreferences.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.ComponentModel;
1+
using System.ComponentModel;
22

33
namespace ElectronNET.API.Entities
44
{
@@ -206,5 +206,11 @@ public class WebPreferences
206206
/// </value>
207207
[DefaultValue(false)]
208208
public bool WebviewTag { get; set; } = false;
209+
210+
/// <summary>
211+
/// Whether to enable the remote module. Defaults to false.
212+
/// </summary>
213+
[DefaultValue(false)]
214+
public bool EnableRemoteModule { get; set; } = false;
209215
}
210216
}

0 commit comments

Comments
 (0)