diff options
Diffstat (limited to 'src/boot')
| -rw-r--r-- | src/boot/after_store.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index b6d292dc..862a534d 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -1,8 +1,8 @@ import Vue from 'vue' import VueRouter from 'vue-router' import routes from './routes' - import App from '../App.vue' +import { windowWidth } from '../services/window_utils/window_utils' const getStatusnetConfig = async ({ store }) => { try { @@ -252,6 +252,9 @@ const afterStoreSetup = async ({ store, i18n }) => { }) } + const width = windowWidth() + store.dispatch('setMobileLayout', width <= 800) + // Now we can try getting the server settings and logging in await Promise.all([ checkOAuthToken({ store }), |
