Correct wrong asset path patch
This commit is contained in:
parent
ca5d5ae74e
commit
d6cdd5c7fc
|
@ -209,7 +209,7 @@ var app = {
|
|||
var rootPath = fileSystem.root.toURL();
|
||||
|
||||
// Patch path to local in manifest response
|
||||
var manifestResponse = response.replace(/(['"\(])\/?(assets\/^['"\)]*)(['"\)])/g, function(match, q1, path, q2){
|
||||
var manifestResponse = response.replace(/(['"\(])\/?(assets\/[^'"\)]*)(['"\)])/g, function(match, q1, path, q2){
|
||||
return q1+rootPath+match+q2;
|
||||
});
|
||||
|
||||
|
@ -218,7 +218,7 @@ var app = {
|
|||
|
||||
});
|
||||
} else {
|
||||
var manifestResponse = response.replace(/(['"\(])\/?(assets\/^['"\)]*)(['"\)])/g, function(match, q1, path, q2){
|
||||
var manifestResponse = response.replace(/(['"\(])\/?(assets\/[^'"\)]*)(['"\)])/g, function(match, q1, path, q2){
|
||||
return q1+rootPath+match+q2;
|
||||
});
|
||||
cb(manifestResponse);
|
||||
|
|
Reference in New Issue