You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2014/01/06 21:25:53 UTC

[13/13] git commit: Fixing a few small bugs in ServeInstaller

Fixing a few small bugs in ServeInstaller


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/27fbb2ed
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/27fbb2ed
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/27fbb2ed

Branch: refs/heads/master
Commit: 27fbb2ed580098e7920bb76b5e1265883cc4dffb
Parents: a2b6268
Author: Braden Shepherdson <br...@gmail.com>
Authored: Thu Dec 12 13:17:18 2013 -0500
Committer: Braden Shepherdson <br...@gmail.com>
Committed: Mon Jan 6 15:25:18 2014 -0500

----------------------------------------------------------------------
 www/cdvah/js/ServeInstaller.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/27fbb2ed/www/cdvah/js/ServeInstaller.js
----------------------------------------------------------------------
diff --git a/www/cdvah/js/ServeInstaller.js b/www/cdvah/js/ServeInstaller.js
index 0cd97f2..606549b 100644
--- a/www/cdvah/js/ServeInstaller.js
+++ b/www/cdvah/js/ServeInstaller.js
@@ -5,6 +5,8 @@
 
     /* global myApp */
     myApp.run(['$q', 'Installer', 'AppsService', 'ResourcesLoader', 'UrlCleanup', function($q, Installer, AppsService, ResourcesLoader, UrlCleanup) {
+        var platformId = cordova.require('cordova/platform').id;
+
         function ServeInstaller(url, appId) {
             Installer.call(this, url, appId);
             // Asset manifest is a cache of what files have been downloaded along with their etags.
@@ -54,7 +56,7 @@
                 if (!/:(\d)/.test(url)) {
                     var newUrl = url.replace(/(.*?\/\/[^\/]*)/, '$1:8000');
                     if (newUrl != url) {
-                        return fetchMetaServeData(url);
+                        return fetchMetaServeData(newUrl);
                     }
                 }
                 deferred.reject(e);