FIX: getURL deprecation

This commit is contained in:
Robin Ward 2020-07-08 11:40:30 -04:00
parent 78beb4368a
commit f3ff9d5625

@ -91,12 +91,10 @@ const Discourse = Application.extend({
// append the favicon_url as query params to the path so that the cache
// is not used when the favicon changes.
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(displayCount);
new window.Favcount(url).set(this.displayCount);
}
},