Fix up watch
alias lookup in Firefox
It was pulling https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch
This commit is contained in:
parent
e6fc0207cb
commit
a8140d5c01
2 changed files with 3 additions and 2 deletions
|
@ -444,7 +444,7 @@ AwardsHandler.prototype.scrollToAwards = function scrollToAwards() {
|
|||
};
|
||||
|
||||
AwardsHandler.prototype.normalizeEmojiName = function normalizeEmojiName(emoji) {
|
||||
return this.aliases[emoji] || emoji;
|
||||
return Object.prototype.hasOwnProperty.call(this.aliases, emoji) ? this.aliases[emoji] : emoji;
|
||||
};
|
||||
|
||||
AwardsHandler
|
||||
|
|
|
@ -16,7 +16,8 @@ const glEmojiTagDefaults = {
|
|||
};
|
||||
function glEmojiTag(inputName, options) {
|
||||
const opts = Object.assign({}, glEmojiTagDefaults, options);
|
||||
const name = emojiAliases[inputName] || inputName;
|
||||
const name = Object.prototype.hasOwnProperty.call(emojiAliases, inputName) ?
|
||||
emojiAliases[inputName] : inputName;
|
||||
const emojiInfo = emojiMap[name];
|
||||
const fallbackImageSrc = `${gon.relative_url_root || ''}/assets/emoji/${name}-${emojiInfo.digest}.png`;
|
||||
const fallbackSpriteClass = `emoji-${name}`;
|
||||
|
|
Loading…
Reference in a new issue