hide download button in webview

pull/133/head
Alex Turchyn 2 years ago
parent db1e2b9aa2
commit abfa64140f

@ -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')

Loading…
Cancel
Save