Detect backend.

This commit is contained in:
eal 2017-12-23 11:31:43 +02:00
parent 6fd309452a
commit 8f3926a096

View file

@ -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)
)