Skip to content
Snippets Groups Projects
Commit 6f2d88dd authored by MIYAGI Hikaru's avatar MIYAGI Hikaru Committed by Eugen Rochko
Browse files

Fix error at emoji_compressed in Firefox ESR (#5241)

parent daa59dd4
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment