mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: IE9 and 10 were getting white screen, due to ES6 usage
This commit is contained in:
@@ -32,7 +32,7 @@ for (var name in aliases) {
|
||||
Discourse.Emoji.unescape = function(string) {
|
||||
if (Discourse.SiteSettings.enable_emoji && string.indexOf(":") >= 0) {
|
||||
string = string.replace(/:[^\s:]+:?/g, function(m) {
|
||||
const emoji = Discourse.Emoji.translations[m] ? Discourse.Emoji.translations[m] : m.slice(1, m.length - 1),
|
||||
var emoji = Discourse.Emoji.translations[m] ? Discourse.Emoji.translations[m] : m.slice(1, m.length - 1),
|
||||
url = Discourse.Emoji.urlFor(emoji);
|
||||
return url ? "<img src='" + url + "' title='" + emoji + "' alt='" + emoji + "' class='emoji'>" : m;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user