mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
FIX: favicon update broken when favicon lived on a CDN
This commit is contained in:
@@ -57,7 +57,11 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
||||
|
||||
faviconChanged: function() {
|
||||
if(Discourse.User.currentProp('dynamic_favicon')) {
|
||||
new Favcount(Discourse.SiteSettings.favicon_url).set(
|
||||
var url = Discourse.SiteSettings.favicon_url;
|
||||
if (/^http/.test(url)) {
|
||||
url = Discourse.getURL("/favicon/proxied?" + encodeURIComponent(url));
|
||||
}
|
||||
new Favcount(url).set(
|
||||
this.get('notifyCount')
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user