From aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Fri, 15 Apr 2016 15:33:53 -0700 Subject: [WinRT] Fix WebView.Eval (#87) --- Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs') 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 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) -- cgit v1.2.3