diff options
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js index 1540c218..51e0f7eb 100644 --- a/src/main.js +++ b/src/main.js @@ -142,3 +142,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 }) + }) |
