Commit 59f26cea authored by Tim Zallmann's avatar Tim Zallmann Committed by Filipa Lacerda

Removes the CDN loading for emojis.json

parent d8bbd3e7
...@@ -33,10 +33,7 @@ export function initEmojiMap() { ...@@ -33,10 +33,7 @@ export function initEmojiMap() {
} }
axiosInstance axiosInstance
.get( .get(`${gon.relative_url_root || ''}/-/emojis/${EMOJI_VERSION}/emojis.json`)
`${gon.asset_host || ''}${gon.relative_url_root ||
''}/-/emojis/${EMOJI_VERSION}/emojis.json`,
)
.then(({ data }) => { .then(({ data }) => {
emojiMap = data; emojiMap = data;
validEmojiNames = [...Object.keys(emojiMap), ...Object.keys(emojiAliases)]; validEmojiNames = [...Object.keys(emojiMap), ...Object.keys(emojiAliases)];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment