summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-04-15 22:33:53 (GMT)
committerRui Marinho <me@ruimarinho.net>2016-04-15 22:33:53 (GMT)
commitaee59bef2fe5d17bf2c0cc30daea1c6ab8a47365 (patch)
treeddc17e1093dbadfe59d7a377dc3885ac213dfcea /Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs
parente7f30c34d51140067bbad4f072bca7e8140d2450 (diff)
downloadxamarin-forms-aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365.zip
xamarin-forms-aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365.tar.gz
xamarin-forms-aee59bef2fe5d17bf2c0cc30daea1c6ab8a47365.tar.bz2
[WinRT] Fix WebView.Eval (#87)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs b/Xamarin.Forms.Platform.WinRT/WebViewRenderer.cs
index df367f7..75ca240 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)