From 6d5014076068fefb3d4a518c68c0a77023f1aa46 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 5 Nov 2022 23:50:31 +0100 Subject: [PATCH] vibrate check --- lnbits/extensions/cashu/templates/cashu/wallet.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lnbits/extensions/cashu/templates/cashu/wallet.html b/lnbits/extensions/cashu/templates/cashu/wallet.html index 7eb81c9d8..b7b5334f7 100644 --- a/lnbits/extensions/cashu/templates/cashu/wallet.html +++ b/lnbits/extensions/cashu/templates/cashu/wallet.html @@ -1392,7 +1392,7 @@ clearInterval(this.invoiceCheckListener) this.invoiceData.bolt11 = '' this.showInvoiceDetails = false - navigator.vibrate(200) + if (window.navigator.vibrate) navigator.vibrate(200) this.$q.notify({ timeout: 5000, type: 'positive', @@ -1620,7 +1620,7 @@ }) this.storehistoryTokens() - navigator.vibrate(200) + if (window.navigator.vibrate) navigator.vibrate(200) this.$q.notify({ timeout: 5000, type: 'positive', @@ -1716,7 +1716,7 @@ '', payload ) - navigator.vibrate(200) + if (window.navigator.vibrate) navigator.vibrate(200) this.$q.notify({ timeout: 5000, type: 'positive', @@ -1836,7 +1836,7 @@ } if (paid){ console.log("### token paid") - navigator.vibrate(200) + if (window.navigator.vibrate) navigator.vibrate(200) this.$q.notify({ timeout: 5000, type: 'positive',