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.
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);