Skip to content

Commit

Permalink
Missing rename
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercn committed Mar 4, 2022
1 parent 77c2466 commit 85c1ae7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected override BlazorAndroidWebView CreatePlatformView()
// To allow overriding ExternalLinkMode.InsecureOpenInWebView and open links in browser with a _blank target
blazorAndroidWebView.Settings.SetSupportMultipleWindows(true);

BlazorAndroidWebView.SetWebContentsDebuggingEnabled(enabled: WebviewSettings.Enabled);
BlazorAndroidWebView.SetWebContentsDebuggingEnabled(enabled: DeveloperTools.Enabled);

if (blazorAndroidWebView.Settings != null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorWebView/src/Maui/BlazorWebViewHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public BlazorWebViewHandler(PropertyMapper? mapper) : base(mapper ?? BlazorWebVi
{
}

internal BlazorWebViewDeveloperTools WebviewSettings => MauiContext!.Services.GetRequiredService<BlazorWebViewDeveloperTools>();
internal BlazorWebViewDeveloperTools DeveloperTools => MauiContext!.Services.GetRequiredService<BlazorWebViewDeveloperTools>();

/// <summary>
/// Maps the <see cref="IBlazorWebView.HostPage"/> property to the specified handler.
Expand Down
2 changes: 1 addition & 1 deletion src/BlazorWebView/src/Maui/iOS/BlazorWebViewHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected override WKWebView CreatePlatformView()
{
var config = new WKWebViewConfiguration();

config.Preferences.SetValueForKey(NSObject.FromObject(WebviewSettings.Enabled), new NSString("developerExtrasEnabled"));
config.Preferences.SetValueForKey(NSObject.FromObject(DeveloperTools.Enabled), new NSString("developerExtrasEnabled"));

config.UserContentController.AddScriptMessageHandler(new WebViewScriptMessageHandler(MessageReceived), "webwindowinterop");
config.UserContentController.AddUserScript(new WKUserScript(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private async Task InitializeWebView2()
await _webview.EnsureCoreWebView2Async();

#if WEBVIEW2_MAUI
var settings = _blazorWebViewHandler.WebviewSettings;
var developerTools = _blazorWebViewHandler.DeveloperTools;
#elif WEBVIEW2_WINFORMS || WEBVIEW2_WPF
var developerTools = _developerTools;
#endif
Expand Down

0 comments on commit 85c1ae7

Please sign in to comment.