Skip to content

Commit

Permalink
Merge pull request #1446 from boxwise/fix-chrome-mobile-mediastream-e…
Browse files Browse the repository at this point in the history
…rror

Check only for not allowed or found MediaStream errors
  • Loading branch information
HaGuesto authored Aug 2, 2024
2 parents 108b583 + b758d1d commit fb4c8e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/src/components/QrReader/QrReaderContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function QrReaderContainer({ onSuccess }: IQrReaderContainerProps) {
.catch((error) => {
if (error.name === "NotAllowedError") {
setIsCameraNotPermited(true);
} else {
}

if (error.name === "NotFoundError") {
triggerError({
userMessage: "No camera is available on your device.",
message: `getUserMedia error: ${error.name}`,
Expand Down

0 comments on commit fb4c8e7

Please sign in to comment.