aboutsummaryrefslogtreecommitdiff
path: root/src/boot/after_store.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-02-09 11:26:35 +0200
committershpuld <shp@cock.li>2019-02-09 11:26:35 +0200
commit3fb531976ace7d19f05ba90cf9785a0114f89540 (patch)
tree4f501ea7ee5632b13ee008446a0733a3b6b649d2 /src/boot/after_store.js
parent9516d5dd73c915443b122440a0ae8996090dc0dd (diff)
Change the async stuff to not render app before theme is loaded
Diffstat (limited to 'src/boot/after_store.js')
-rw-r--r--src/boot/after_store.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js
index 5693dcc6..60cee1bf 100644
--- a/src/boot/after_store.js
+++ b/src/boot/after_store.js
@@ -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),