From f3ff9d56253624fc6744d6203b7abab2a6fb0922 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 8 Jul 2020 11:40:30 -0400 Subject: [PATCH] FIX: `getURL` deprecation --- app/assets/javascripts/discourse/app/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } },