diff options
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js index de74511b..a14ca7c8 100644 --- a/src/main.js +++ b/src/main.js @@ -137,7 +137,7 @@ window.fetch('/api/pleroma/emoji.json') const emoji = Object.keys(values).map((key) => { return { shortcode: key, image_url: values[key] } }) - store.dispatch('setOption', { name: 'emoji', value: emoji }) + store.dispatch('setOption', { name: 'customEmoji', value: emoji }) store.dispatch('setOption', { name: 'pleromaBackend', value: true }) }, (failure) => { @@ -146,3 +146,12 @@ window.fetch('/api/pleroma/emoji.json') ), (error) => console.log(error) ) + +window.fetch('/static/emoji.json') + .then((res) => res.json()) + .then((values) => { + const emoji = Object.keys(values).map((key) => { + return { shortcode: key, image_url: false, 'utf': values[key] } + }) + store.dispatch('setOption', { name: 'emoji', value: emoji }) + }) |
