We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16bdb5b commit b90bed1Copy full SHA for b90bed1
plugin/src/web.ts
@@ -122,7 +122,7 @@ export class CapacitorBarcodeScannerWeb extends WebPlugin implements CapacitorBa
122
};
123
124
const OSBarcodeWebScannerErrorCallback = (error: string) => {
125
- if (error.indexOf('NotFoundException') === -1) {
+ if (error.indexOf('NotFoundException') === -1 && error.indexOf('No barcode or QR code detected') === -1) {
126
this.stopAndHideScanner();
127
console.error(`[Scanner Web Error] ${error}`);
128
reject(error);
0 commit comments