Skip to content

A platform for community discussion. Free, open, simple.

FIX: `getURL` deprecation

Robin Wardf3ff9d562536
diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.js
index 06e5064e3e2..836ad694fdd 100644
--- a/app/assets/javascripts/discourse/app/app.js
+++ b/app/assets/javascripts/discourse/app/app.js
@@ -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);
}
},