Skip to content

Commit

Permalink
add @ts-ignore to ignore incomplete type
Browse files Browse the repository at this point in the history
  • Loading branch information
Darguima committed Feb 27, 2024
1 parent f370c87 commit c9ae495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/QRScanner/BarebonesQRScanner/useWebcam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface useWebcamPermissionsRequestProps {

const checkWebcamPermissions = async () => {
try {
// @ts-ignore - camera is not yet recognized as a permission, but is already available in most browsers
const result = await navigator.permissions?.query({ name: "camera" });
return result.state === "granted";
} catch (e) {
Expand Down

0 comments on commit c9ae495

Please sign in to comment.