mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-10-31 23:15:05 +01:00
Fix missing isAndroid var
This commit is contained in:
parent
9df6f4fdc2
commit
be3ebdc898
@ -1,6 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
/// <reference types="@types/gtag.js" />
|
||||
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
function handleAnalytics() {
|
||||
window.gtag?.('event', 'Add', {
|
||||
event_category: 'Extension',
|
||||
@ -10,9 +12,16 @@ function handleAnalytics() {
|
||||
|
||||
const url = new URL('tachiyomi://add-repo')
|
||||
url.searchParams.append('url', 'https://raw.githubusercontent.com/tachiyomiorg/extensions/repo/index.min.json')
|
||||
|
||||
const isAndroid = ref(true)
|
||||
|
||||
onMounted(() => {
|
||||
isAndroid.value = !!navigator.userAgent.match(/android/i)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="!isAndroid">
|
||||
<div class="action-buttons">
|
||||
<a
|
||||
@ -59,6 +68,7 @@ url.searchParams.append('url', 'https://raw.githubusercontent.com/tachiyomiorg/e
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="stylus">
|
||||
|
Loading…
Reference in New Issue
Block a user