cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [3/9] cordova-app-harness git commit: Disable remapper in order to pick up custom CSP tags for Chrome Apps
Date Wed, 13 May 2015 02:42:48 GMT
Disable remapper in order to pick up custom CSP tags for Chrome Apps

May want to re-enable and make mapping more complicated for performance
reasons.


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

Branch: refs/heads/master
Commit: 141def8bf6b72f36c9c0e1aea3c6e004505ac69f
Parents: ccf90b0
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Mar 13 11:05:28 2015 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue May 12 22:06:42 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/141def8b/www/cdvah/js/Installer.js
----------------------------------------------------------------------
diff --git a/www/cdvah/js/Installer.js b/www/cdvah/js/Installer.js
index fb00d07..6d28134 100644
--- a/www/cdvah/js/Installer.js
+++ b/www/cdvah/js/Installer.js
@@ -21,8 +21,6 @@
 
     /* global myApp, cordova */
     myApp.factory('Installer', ['$q', 'UrlRemap', 'ResourcesLoader', 'PluginMetadata', 'DirectoryManager',
function($q, UrlRemap, ResourcesLoader, PluginMetadata, DirectoryManager) {
-        var platformId = cordova.require('cordova/platform').id;
-
         function Installer() {}
 
         Installer.prototype.init = function(installPath, /* optional */ appId) {
@@ -179,7 +177,7 @@
                 var appWwwUrl = self.getWwwDir();
                 var startLocation = urlutil.makeAbsolute(self.getStartPage()).replace('/cdvah/',
'/');
                 var realStartLocation = startLocation.replace(harnessWwwUrl, appWwwUrl);
-                var useRemapper = platformId == 'android';
+                var useRemapper = false; //platformId == 'android';
 
                 if (!/^file:/.exec(startLocation)) {
                     throw new Error('Expected to start with file: ' + startLocation);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message