Web: Fix bug with detection (#418)

This commit is contained in:
Michał Leszczyński
2024-10-16 02:06:55 +02:00
committed by GitHub
parent b2c96b4363
commit 3417a60d70

View File

@@ -53,7 +53,9 @@ export function detectMethod() {
// newer Chrome versions contain proper Credential API UX
try {
new NDEFReader();
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
new window.NDEFReader();
return "webnfc";
} catch (e) {
// pass