diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-04-15 15:33:53 -0700 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-04-15 23:33:53 +0100 |
commit | aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365 (patch) | |
tree | ddc17e1093dbadfe59d7a377dc3885ac213dfcea | |
parent | e7f30c34d51140067bbad4f072bca7e8140d2450 (diff) | |
download | xamarin-forms-aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365.tar.gz xamarin-forms-aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365.tar.bz2 xamarin-forms-aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365.zip |
[WinRT] Fix WebView.Eval (#87)
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs b/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs index df367f7c..75ca240c 100644 --- a/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs +++ b/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs @@ -96,9 +96,7 @@ namespace Xamarin.Forms.Platform.WinRT async void OnEvalRequested(object sender, EventArg<string> eventArg) { -#pragma warning disable 618 - await Control.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => Control.InvokeScript("eval", new[] { eventArg.Data })); -#pragma warning restore 618 + await Control.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () => await Control.InvokeScriptAsync("eval", new[] { eventArg.Data })); } void OnGoBackRequested(object sender, EventArgs eventArgs) |