fix race condition

This commit is contained in:
Egor Kislitsyn 2018-12-10 22:36:25 +07:00
parent 73b17d70ec
commit ee70ec4c7e
4 changed files with 21 additions and 44 deletions

View file

@ -27,7 +27,10 @@ const afterStoreSetup = ({ store, i18n }) => {
store.dispatch('setInstanceOption', { name: 'registrationOpen', value: (registrationClosed === '0') })
store.dispatch('setInstanceOption', { name: 'textlimit', value: parseInt(textlimit) })
store.dispatch('setInstanceOption', { name: 'server', value: server })
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })
if (vapidPublicKey) {
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })
}
var apiConfig = data.site.pleromafe