From 141def8bf6b72f36c9c0e1aea3c6e004505ac69f Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Fri, 13 Mar 2015 11:05:28 -0400 Subject: [PATCH] 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. --- www/cdvah/js/Installer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);