hide download button in webview
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
|
v-if="!isWebView"
|
||||||
class="base-button flex items-center space-x-1 w-full"
|
class="base-button flex items-center space-x-1 w-full"
|
||||||
:disabled="isDownloading"
|
:disabled="isDownloading"
|
||||||
@click.prevent="download"
|
@click.prevent="download"
|
||||||
@@ -122,6 +123,11 @@ export default {
|
|||||||
isDownloading: false
|
isDownloading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
isWebView () {
|
||||||
|
return /webview|wv|ip((?!.*Safari)|(?=.*like Safari))/i.test(window.navigator.userAgent)
|
||||||
|
}
|
||||||
|
},
|
||||||
async mounted () {
|
async mounted () {
|
||||||
if (this.withConfetti) {
|
if (this.withConfetti) {
|
||||||
const { default: confetti } = await import('canvas-confetti')
|
const { default: confetti } = await import('canvas-confetti')
|
||||||
|
|||||||
Reference in New Issue
Block a user