slight mobile changes

This commit is contained in:
Craig
2020-01-30 23:57:00 +00:00
parent b92aae251b
commit 25a3718d91
2 changed files with 35 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template>
<ul>
<li>
<li v-if="!isTouch">
<i
:class="[
hosted && !hosting ? 'disabled' : '',
@ -114,6 +114,13 @@
@Component({ name: 'neko-controls' })
export default class extends Vue {
get isTouch() {
return (
(typeof navigator.maxTouchPoints !== 'undefined' ? navigator.maxTouchPoints < 0 : false) ||
'ontouchstart' in document.documentElement
)
}
get hosted() {
return this.$accessor.remote.hosted
}