From 042f7184f125bb18f763eb19497f6bf7c30175b5 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Fri, 26 Jul 2019 15:25:20 -0400 Subject: [PATCH] DEV: Display FA 4.7 deprecation notice in all environments FA 4.7 icon mapping will be removed soon. --- .../discourse-common/lib/icon-library.js.es6 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 b/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 index d5aecd76d42..9821368c86e 100644 --- a/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 +++ b/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 @@ -579,13 +579,9 @@ function warnIfMissing(id) { } function warnIfDeprecated(oldId, newId) { - if ( - typeof Discourse !== "undefined" && - Discourse.Environment === "development" && - !Ember.testing - ) { - deprecated(`Icon "${oldId}" is now "${newId}".`); - } + deprecated( + `Please replace all occurrences of "${oldId}"" with "${newId}". FontAwesome 4.7 icon names are now deprecated and will be removed in the next release.` + ); } function handleIconId(icon) {