don't bother with register emoji if dialect is missing
This commit is contained in:
parent
5d13fa1b94
commit
d5b63730bc
|
@ -8,10 +8,12 @@ var emoji = <%= Emoji.standard.map(&:name).flatten.inspect %>;
|
|||
var aliases = <%= Emoji.aliases.inspect.gsub("=>", ":") %>;
|
||||
|
||||
var extendedEmoji = {};
|
||||
Discourse.Dialect.registerEmoji = function(code, url) {
|
||||
code = code.toLowerCase();
|
||||
extendedEmoji[code] = url;
|
||||
};
|
||||
if (Discourse.Dialect) {
|
||||
Discourse.Dialect.registerEmoji = function(code, url) {
|
||||
code = code.toLowerCase();
|
||||
extendedEmoji[code] = url;
|
||||
};
|
||||
}
|
||||
|
||||
var _unicodeReplacements;
|
||||
var _unicodeRegexp;
|
||||
|
|
Loading…
Reference in New Issue