aboutsummaryrefslogtreecommitdiff
path: root/src/boot/after_store.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-03-03 16:33:40 +0200
committershpuld <shp@cock.li>2019-03-03 16:33:40 +0200
commitc7e180080afd0e255e439030df800f79d33ff5de (patch)
tree5c165df9dcdaef7c7701631325868e06af716b73 /src/boot/after_store.js
parent1d3b1ac934e5dacb05d227ddc1ab0cbd8e16e169 (diff)
more work with notifications drawer
Diffstat (limited to 'src/boot/after_store.js')
-rw-r--r--src/boot/after_store.js3
1 files changed, 3 insertions, 0 deletions
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) => {