Change the async stuff to not render app before theme is loaded
This commit is contained in:
parent
9516d5dd73
commit
3fb531976a
4 changed files with 9 additions and 5 deletions
|
@ -55,7 +55,6 @@ const afterStoreSetup = ({ store, i18n }) => {
|
|||
}
|
||||
|
||||
copyInstanceOption('nsfwCensorImage')
|
||||
copyInstanceOption('theme')
|
||||
copyInstanceOption('background')
|
||||
copyInstanceOption('hidePostStats')
|
||||
copyInstanceOption('hideUserStats')
|
||||
|
@ -93,6 +92,9 @@ const afterStoreSetup = ({ store, i18n }) => {
|
|||
store.dispatch('initializeSocket')
|
||||
}
|
||||
|
||||
return store.dispatch('setTheme', config['theme'])
|
||||
})
|
||||
.then(() => {
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
routes: routes(store),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue