Skip to content

Commit

Permalink
Pranav Points
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh committed Feb 17, 2022
1 parent 3c7c2d0 commit f712ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/BlazorWebView/src/Maui/Android/WebKitWebViewClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ request is not null &&
_webViewHandler.Context.StartActivity(intent);
}

if (externalLinkMode != ExternalLinkNavigationPolicy.OpenInWebView)
{
return true;
}
args.Cancel = externalLinkMode != ExternalLinkNavigationPolicy.OpenInWebView;
}
}

Expand Down
5 changes: 1 addition & 4 deletions src/BlazorWebView/src/Maui/Windows/WinUIWebViewManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ protected override void CoreWebView2_NavigationStarting(object sender, CoreWebVi
_ = Launcher.LaunchUriAsync(uri);
}

if (externalLinkMode != ExternalLinkNavigationPolicy.OpenInWebView)
{
args.Cancel = true;
}
args.Cancel = externalLinkMode != ExternalLinkNavigationPolicy.OpenInWebView;
}
}

Expand Down

0 comments on commit f712ee5

Please sign in to comment.