Fix error at emoji_compressed in Firefox ESR (#5241)

th-downstream
MIYAGI Hikaru 7 years ago committed by Eugen Rochko
parent 94fb47ee12
commit a22adce069

@ -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…
Cancel
Save