Skip to content

Commit

Permalink
Comment constrains
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbicus committed Oct 31, 2024
1 parent c83cb31 commit d89edf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/create-card/scanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const getConfig = (boundingRect?: DOMRect): Html5QrcodeCameraScanConfig => {
height: Math.max(50, Math.ceil(boundingRect.height * 0.8)),
};
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const videoConstraints = boundingRect
? {
width: {
Expand All @@ -37,7 +38,7 @@ const getConfig = (boundingRect?: DOMRect): Html5QrcodeCameraScanConfig => {
const config: Html5QrcodeCameraScanConfig = {
fps: 4,
qrbox,
videoConstraints,
// videoConstraints,
};
console.log('config', config);
return config;
Expand Down

0 comments on commit d89edf9

Please sign in to comment.