mirror of
https://github.com/arx-research/libhalo.git
synced 2026-01-10 05:38:10 -05:00
Web: Fix bug with detection (#418)
This commit is contained in:
committed by
GitHub
parent
b2c96b4363
commit
3417a60d70
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user