Skip to content

Commit

Permalink
Fix EvaluateJavaScriptAsync using Compatibility WebView Renderer (#12901
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jsuarezruiz authored Feb 2, 2023
1 parent a3b7a48 commit 72706d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controls/src/Core/WebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public async Task<string> EvaluateJavaScriptAsync(string script)

string result;

if (_evaluateJavaScriptRequested?.GetInvocationList().Length == 0)
if (_evaluateJavaScriptRequested != null) // With Handlers we don't use events, if is null we are using a renderer and a handler otherwise.
{
// This is the WebViewRenderer subscribing to these requests; the handler stuff
// doesn't use them.
Expand Down

0 comments on commit 72706d1

Please sign in to comment.