mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
slight mobile changes
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user