A platform for community discussion. Free, open, simple.
DEV: Display FA 4.7 deprecation notice in all environments
Penar Musaraj042f7184f125
diff --git a/app/assets/javascripts/discourse-common/lib/icon-library.js.es6 b/app/assets/javascripts/discourse-common/lib/icon-library.js.es6index 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) {