FIX: use CDN for user card/profile background and user avatars (for real this time)

This commit is contained in:
Régis Hanol
2015-01-29 22:53:48 +01:00
parent 4a2786dbf2
commit 6a68e8c272
6 changed files with 26 additions and 18 deletions

View File

@ -24,6 +24,12 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
return u + url;
},
getURLWithCDN: function(url) {
url = this.getURL(url);
if (Discourse.CDN) { url = Discourse.CDN + url; }
return url;
},
Resolver: DiscourseResolver,
_titleChanged: function() {