From 8a0276daf971521f5eae580d1a35910a54f21223 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 20 Jan 2021 11:49:50 -0600 Subject: [PATCH] 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. --- .gitignore | 3 +++ ElectronNET.API/Entities/WebPreferences.cs | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 9e949db..7169b14 100644 --- a/.gitignore +++ b/.gitignore @@ -260,3 +260,6 @@ paket-files/ # Python Tools for Visual Studio (PTVS) __pycache__/ *.pyc + +# Mac Only settings file +.DS_Store diff --git a/ElectronNET.API/Entities/WebPreferences.cs b/ElectronNET.API/Entities/WebPreferences.cs index 7d3ceff..a93c032 100644 --- a/ElectronNET.API/Entities/WebPreferences.cs +++ b/ElectronNET.API/Entities/WebPreferences.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; +using System.ComponentModel; namespace ElectronNET.API.Entities { @@ -206,5 +206,11 @@ namespace ElectronNET.API.Entities /// [DefaultValue(false)] public bool WebviewTag { get; set; } = false; + + /// + /// Whether to enable the remote module. Defaults to false. + /// + [DefaultValue(false)] + public bool EnableRemoteModule { get; set; } = false; } } \ No newline at end of file