minor fix

This commit is contained in:
adisposkofh
2026-04-21 11:21:50 +02:00
parent 414d8bd383
commit 2f1edfeeab
+8 -1
View File
@@ -232,12 +232,19 @@ const app = Vue.createApp({
appSideMenuEntries: {},
renderers: null,
}),
computed: {
isMobile() {
const smallScreen = window.matchMedia("(max-width: 767px)").matches;
const touchCapable = ("ontouchstart" in window) || navigator.maxTouchPoints > 0;
return smallScreen;// && touchCapable;
},
},
components: {},
inject: ["isMobile"],
provide() {
return { // provide injectable & watchable language property
language: Vue.computed(() => this.$p.user_language),
renderers: Vue.computed(() => this.renderers),
isMobile: this.isMobile,
}
},
methods: {