forked from mirrors/akkoma-fe
Detect backend.
This commit is contained in:
parent
6fd309452a
commit
8f3926a096
1 changed files with 4 additions and 1 deletions
|
@ -137,8 +137,11 @@ window.fetch('/api/pleroma/emoji.json')
|
|||
return { shortcode: key, image_url: values[key] }
|
||||
})
|
||||
store.dispatch('setOption', { name: 'emoji', value: emoji })
|
||||
store.dispatch('setOption', { name: 'pleromaBackend', value: true })
|
||||
},
|
||||
(failure) => {}
|
||||
(failure) => {
|
||||
store.dispatch('setOption', { name: 'pleromaBackend', value: false })
|
||||
}
|
||||
),
|
||||
(error) => console.log(error)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue