From c7e180080afd0e255e439030df800f79d33ff5de Mon Sep 17 00:00:00 2001 From: shpuld Date: Sun, 3 Mar 2019 16:33:40 +0200 Subject: more work with notifications drawer --- src/boot/after_store.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/boot/after_store.js') diff --git a/src/boot/after_store.js b/src/boot/after_store.js index 53ecc083..ad72ce04 100644 --- a/src/boot/after_store.js +++ b/src/boot/after_store.js @@ -5,6 +5,9 @@ import routes from './routes' import App from '../App.vue' const afterStoreSetup = ({ store, i18n }) => { + const width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth + store.dispatch('setMobileLayout', width <= 800) + window.fetch('/api/statusnet/config.json') .then((res) => res.json()) .then((data) => { -- cgit v1.2.3-70-g09d2