diff options
| author | shpuld <shp@cock.li> | 2019-04-01 22:41:34 +0300 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-04-01 22:41:34 +0300 |
| commit | 2879495b8ab16a07d337965871e951f660fc1815 (patch) | |
| tree | e5a9242aa0dfce948110dd670ad6aea88bce382d /src/boot/after_store.js | |
| parent | c06bcf3303d89aa44ddcdad3a9d2f723303ae3d1 (diff) | |
remove window width copypasta
Diffstat (limited to 'src/boot/after_store.js')
| -rw-r--r-- | src/boot/after_store.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js index f86a65e3..e03b7f27 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 { @@ -230,7 +230,7 @@ const afterStoreSetup = async ({ store, i18n }) => { }) } - const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth + const width = windowWidth() store.dispatch('setMobileLayout', width <= 800) const apiConfig = await getStatusnetConfig({ store }) |
