forked from mirrors/akkoma-fe
Suppress emoji fetch error on gs.
This commit is contained in:
parent
f72d6ec83e
commit
1db1529dec
1 changed files with 13 additions and 7 deletions
12
src/main.js
12
src/main.js
|
@ -121,10 +121,16 @@ window.fetch('/static/terms-of-service.html')
|
|||
})
|
||||
|
||||
window.fetch('/api/pleroma/emoji.json')
|
||||
.then((res) => res.json())
|
||||
.then((values) => {
|
||||
.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)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue