Skip to content

Commit

Permalink
Merge pull request #575 from ToberoCat/master
Browse files Browse the repository at this point in the history
  • Loading branch information
werthdavid authored Oct 20, 2024
2 parents 5cfdabf + 097cdd3 commit af3688f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion projects/zxing-scanner/src/lib/zxing-scanner.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,15 @@ export class ZXingScannerComponent implements OnInit, OnDestroy {
// tells the listener about the error
this.camerasNotFound.next(err);
break;

case 'AbortError':
console.warn('@zxing/ngx-scanner', 'It seems that the required permissions have been granted, but something else failed', err);
// permissions claimed
permission = true;
// can't check devices
this.hasDevices.next(null);
// tells the listener about the error
this.camerasNotFound.next(err);
break;
default:
console.warn('@zxing/ngx-scanner', 'I was not able to define if I have permissions for camera or not.', err);
// unknown
Expand Down

0 comments on commit af3688f

Please sign in to comment.