patch manifest response also for medias (#9809)

This commit is contained in:
Serghei Mihai 2016-02-17 15:47:43 +01:00
parent 940f8dd5b6
commit c7db07a92d
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ var app = {
patchResponse: function(response, cb){
var patch = function(jsonText, path) {
return jsonText.replace(/(['"\(])\/?(assets\/[^'"\)]*)(['"\)])/g, function(match, q1, p, q2){
return jsonText.replace(/(['"\(])\/?(assets|media\/[^'"\)]*)(['"\)])/g, function(match, q1, p, q2){
return q1+path+p+q2;
});
};