mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 01:41:04 +01:00
Fix error at emoji_compressed in Firefox ESR (#5241)
This commit is contained in:
parent
daa59dd454
commit
6f2d88dd28
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ Object.keys(emojiMap).forEach(key => {
|
|||
if (typeof shortcode === 'undefined') {
|
||||
emojisWithoutShortCodes.push(filenameData);
|
||||
} else {
|
||||
shortCodesToEmojiData[shortcode] = shortCodesToEmojiData[shortcode] || [[]];
|
||||
if (!Array.isArray(shortCodesToEmojiData[shortcode])) {
|
||||
shortCodesToEmojiData[shortcode] = [[]];
|
||||
}
|
||||
shortCodesToEmojiData[shortcode][0].push(filenameData);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue