diff options
Diffstat (limited to 'src/boot/after_store.js')
| -rw-r--r-- | src/boot/after_store.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index a5f8c978..549de497 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -229,6 +229,9 @@ const afterStoreSetup = async ({ store, i18n }) => { }) } + const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth + store.dispatch('setMobileLayout', width <= 800) + const apiConfig = await getStatusnetConfig({ store }) const staticConfig = await getStaticConfig() await setSettings({ store, apiConfig, staticConfig }) |
