Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
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.
  • Loading branch information
agrieve committed May 13, 2015
1 parent ccf90b0 commit 141def8bf6b72f36c9c0e1aea3c6e004505ac69f
Showing 1 changed file with 1 addition and 3 deletions.
@@ -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);

0 comments on commit 141def8

Please sign in to comment.