Skip to content

Commit

Permalink
Web: Fix bug with detection (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
icedevml authored Oct 16, 2024
1 parent b2c96b4 commit 3417a60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src.ts/drivers/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3417a60

Please sign in to comment.