diff options
| author | eal <eal@waifu.club> | 2017-11-20 20:32:51 +0200 |
|---|---|---|
| committer | eal <eal@waifu.club> | 2017-11-20 20:32:51 +0200 |
| commit | 581e3e836ad6c8a9a211eb09d7eaa1fbaf830da2 (patch) | |
| tree | fbcb1aff624afa392c01b496e13ea18aaf0fdabe /src/main.js | |
| parent | 80203636803c3035a46d0d82c7778e4aff8d2612 (diff) | |
Add completion for normal emoji.
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 b6544a5a..14cb27eb 100644 --- a/src/main.js +++ b/src/main.js @@ -125,5 +125,14 @@ window.fetch('/api/pleroma/emoji.json') const emoji = Object.keys(values).map((key) => { return { shortcode: key, image_url: values[key] } }) + store.dispatch('setOption', { name: 'customEmoji', value: emoji }) + }) + +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 }) }) |
