You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/04/15 02:02:05 UTC

[4/4] git commit: await async calls, resolve warnings

await async calls, resolve warnings


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/34c29dc2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/34c29dc2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/34c29dc2

Branch: refs/heads/dev
Commit: 34c29dc2ecf66dcde5fc96f1f85295d7332bde14
Parents: aa6c151
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Apr 14 17:01:35 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Apr 14 17:01:35 2014 -0700

----------------------------------------------------------------------
 src/wp/InAppBrowser.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/34c29dc2/src/wp/InAppBrowser.cs
----------------------------------------------------------------------
diff --git a/src/wp/InAppBrowser.cs b/src/wp/InAppBrowser.cs
index ae88b51..7239c8a 100644
--- a/src/wp/InAppBrowser.cs
+++ b/src/wp/InAppBrowser.cs
@@ -218,14 +218,14 @@ namespace WPCordovaClassLib.Cordova.Commands
             var pathUri = new Uri(url, UriKind.Absolute);
             if (pathUri.Scheme == Uri.UriSchemeHttp || pathUri.Scheme == Uri.UriSchemeHttps)
             {
-                Launcher.LaunchUriAsync(pathUri);
+                await Launcher.LaunchUriAsync(pathUri);
                 return;
             }
 
             var file = await GetFile(pathUri.AbsolutePath.Replace('/', Path.DirectorySeparatorChar));
             if (file != null)
             {
-                Launcher.LaunchFileAsync(file);
+                await Launcher.LaunchFileAsync(file);
             }
             else
             {