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

[2/2] git commit: Small fix to UriRemap to remove double forward slash for plugin assets

Small fix to UriRemap to remove double forward slash for plugin assets


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/e1722eb9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/e1722eb9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/e1722eb9

Branch: refs/heads/master
Commit: e1722eb98e499130049c6df0cb1d7c5224853aec
Parents: 5385919
Author: Andrew Grieve <ag...@chromium.org>
Authored: Tue Jun 3 13:52:10 2014 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Tue Jun 3 21:48:26 2014 -0400

----------------------------------------------------------------------
 www/cdvah/js/Installer.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/e1722eb9/www/cdvah/js/Installer.js
----------------------------------------------------------------------
diff --git a/www/cdvah/js/Installer.js b/www/cdvah/js/Installer.js
index 28acb24..d339d33 100644
--- a/www/cdvah/js/Installer.js
+++ b/www/cdvah/js/Installer.js
@@ -144,8 +144,7 @@
                     UrlRemap.aliasUri(harnessPrefixPattern, harnessPrefixPattern, appWwwUrl, false /* redirect */, true /* allowFurtherRemapping */);
 
                     // Set-up app-harness: scheme to point at the harness.
-                    UrlRemap.aliasUri('^app-harness:///cdvah/index.html', '^app-harness://', harnessWwwUrl, true, false);
-                    return UrlRemap.aliasUri('^app-harness:', '^app-harness://', harnessWwwUrl, false, false)
+                    return UrlRemap.aliasUri('^app-harness:', '^app-harness:///', harnessWwwUrl, false, false)
                     .then(function() {
                         return startLocation;
                     });