Skip to content

Commit

Permalink
Update WebView EvaluateJavaScript async (dotnet#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
myroot committed Aug 25, 2022
1 parent b0c5234 commit 20920c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Core/src/Platform/Tizen/WebViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ public static void EvaluateJavaScript(this MauiWebView platformWebView, Evaluate
{
try
{
platformWebView.EvaluateJavaScript(request.Script);
// TODO: Fix it after update NUI API
request.SetResult(string.Empty);
platformWebView.EvaluateJavaScript(request.Script, (message) =>
{
request.SetResult(message);
});
}
catch (Exception ex)
{
Expand Down

0 comments on commit 20920c1

Please sign in to comment.