FIX: use CDN for user card/profile background and user avatars (for real this time)
This commit is contained in:
parent
4a2786dbf2
commit
6a68e8c272
6 changed files with 26 additions and 18 deletions
app/assets/javascripts
|
@ -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() {
|
||||
|
|
Reference in a new issue