UI: hide paste payment request in unsupported environments (#1853)

This commit is contained in:
michael1011
2023-08-03 20:38:05 +02:00
committed by GitHub
parent 772ae2a1ab
commit 03acf5e5ec
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -137,6 +137,9 @@ new Vue({
comment: ''
},
paymentChecker: null,
copy: {
show: false
},
camera: {
show: false,
camera: 'auto'
@@ -302,6 +305,8 @@ new Vue({
this.parse.invoice = null
this.parse.lnurlpay = null
this.parse.lnurlauth = null
this.parse.copy.show =
window.isSecureContext && navigator.clipboard?.readText !== undefined
this.parse.data.request = ''
this.parse.data.comment = ''
this.parse.data.paymentChecker = null