mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
minor fix
This commit is contained in:
@@ -233,11 +233,18 @@ const app = Vue.createApp({
|
|||||||
renderers: null,
|
renderers: null,
|
||||||
}),
|
}),
|
||||||
components: {},
|
components: {},
|
||||||
inject: ["isMobile"],
|
computed: {
|
||||||
|
isMobile() {
|
||||||
|
const smallScreen = window.matchMedia("(max-width: 767px)").matches;
|
||||||
|
const touchCapable = ("ontouchstart" in window) || navigator.maxTouchPoints > 0;
|
||||||
|
return smallScreen;// && touchCapable;
|
||||||
|
},
|
||||||
|
},
|
||||||
provide() {
|
provide() {
|
||||||
return { // provide injectable & watchable language property
|
return { // provide injectable & watchable language property
|
||||||
language: Vue.computed(() => this.$p.user_language),
|
language: Vue.computed(() => this.$p.user_language),
|
||||||
renderers: Vue.computed(() => this.renderers),
|
renderers: Vue.computed(() => this.renderers),
|
||||||
|
isMobile: this.isMobile,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user