cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [13/17] git commit: await async calls, resolve warnings
Date Wed, 23 Apr 2014 18:57:33 GMT
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/master
Commit: 34c29dc2ecf66dcde5fc96f1f85295d7332bde14
Parents: aa6c151
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Mon Apr 14 17:01:35 2014 -0700
Committer: Jesse MacFadyen <purplecabbage@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
             {


Mime
View raw message