Browse Source

Fix error at emoji_compressed in Firefox ESR (#5241)

master
MIYAGI Hikaru 7 years ago
committed by Eugen Rochko
parent
commit
6f2d88dd28
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/mastodon/features/emoji/emoji_compressed.js

+ 3
- 1
app/javascript/mastodon/features/emoji/emoji_compressed.js View File

@ -54,7 +54,9 @@ Object.keys(emojiMap).forEach(key => {
if (typeof shortcode === 'undefined') { if (typeof shortcode === 'undefined') {
emojisWithoutShortCodes.push(filenameData); emojisWithoutShortCodes.push(filenameData);
} else { } else {
shortCodesToEmojiData[shortcode] = shortCodesToEmojiData[shortcode] || [[]];
if (!Array.isArray(shortCodesToEmojiData[shortcode])) {
shortCodesToEmojiData[shortcode] = [[]];
}
shortCodesToEmojiData[shortcode][0].push(filenameData); shortCodesToEmojiData[shortcode][0].push(filenameData);
} }
}); });

Loading…
Cancel
Save