diff --git a/src/main.js b/src/main.js index a8ee5fdad8ce50a2b721d53696765903cb1f5f9f..1540c2185f34bba4bb01f2fe502ec802790daab4 100644 --- a/src/main.js +++ b/src/main.js @@ -129,10 +129,16 @@ window.fetch('/static/terms-of-service.html') }) window.fetch('/api/pleroma/emoji.json') - .then((res) => res.json()) - .then((values) => { - const emoji = Object.keys(values).map((key) => { - return { shortcode: key, image_url: values[key] } - }) - store.dispatch('setOption', { name: 'emoji', value: emoji }) - }) + .then( + (res) => res.json() + .then( + (values) => { + const emoji = Object.keys(values).map((key) => { + return { shortcode: key, image_url: values[key] } + }) + store.dispatch('setOption', { name: 'emoji', value: emoji }) + }, + (failure) => {} + ), + (error) => console.log(error) + )