Removes the CDN loading for emojis.json

This commit is contained in:
Tim Zallmann 2019-03-13 13:36:14 +00:00 committed by Filipa Lacerda
parent d8bbd3e78e
commit 59f26ceacd

View file

@ -33,10 +33,7 @@ export function initEmojiMap() {
}
axiosInstance
.get(
`${gon.asset_host || ''}${gon.relative_url_root ||
''}/-/emojis/${EMOJI_VERSION}/emojis.json`,
)
.get(`${gon.relative_url_root || ''}/-/emojis/${EMOJI_VERSION}/emojis.json`)
.then(({ data }) => {
emojiMap = data;
validEmojiNames = [...Object.keys(emojiMap), ...Object.keys(emojiAliases)];