mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: getURL deprecation
This commit is contained in:
@@ -91,12 +91,10 @@ const Discourse = Application.extend({
|
|||||||
// append the favicon_url as query params to the path so that the cache
|
// append the favicon_url as query params to the path so that the cache
|
||||||
// is not used when the favicon changes.
|
// is not used when the favicon changes.
|
||||||
if (/^http/.test(url)) {
|
if (/^http/.test(url)) {
|
||||||
url = this.getURL("/favicon/proxied?" + encodeURIComponent(url));
|
url = getURL("/favicon/proxied?" + encodeURIComponent(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
var displayCount = this.displayCount;
|
new window.Favcount(url).set(this.displayCount);
|
||||||
|
|
||||||
new window.Favcount(url).set(displayCount);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user