NFC: Do not start scanning if unsupported

Fixes #5067.
This commit is contained in:
Dennis Reimann 2023-06-13 21:06:38 +02:00 committed by Andrew Camilleri
parent 918cd152b1
commit 0f66498965

View file

@ -80,6 +80,7 @@ Vue.component("lnurl-withdraw-checkout", {
}
},
async mounted () {
if (!this.supported) return;
try {
this.permissionGranted = navigator.permissions &&
(await navigator.permissions.query({ name: 'nfc' })).state === 'granted'