Skip to content
Snippets Groups Projects
Commit b66fafd8 authored by c-tim's avatar c-tim
Browse files

fix(qrError): Disable QR Error reporting, as it spams noQrFoundErr

parent 53d112f0
No related branches found
No related tags found
2 merge requests!18Merge Staging into Main,!16fix(qrError): Disable QR Error reporting, as it spams noQrFoundErr
This diff is collapsed.
...@@ -209,13 +209,18 @@ export async function addItemByTag(tag) { ...@@ -209,13 +209,18 @@ export async function addItemByTag(tag) {
} }
} }
async function handleQrError(msg, err){ async function handleQrError(msg, err){ // eslint-disable-line no-unused-vars
if(err.type == 2 /*Not found*/ || err.errorMessage.includes("error = NotFoundException")) { // if(err.type == 2 /*Not found*/ || err.errorMessage.includes("error = NotFoundException")) {
// return;
// }
// alert("Qrcode Error: " + msg + " (" + err + ")");
// console.log("Qrcode Error: ", msg, err);
// Sadly we can currently not reliably differentiate between a serious QR-Code Error and the "error",
// that no QR code can be found.
// Seems to be device-dependent,
return; return;
} }
alert("Qrcode Error: " + msg + " (" + err + ")");
console.log("Qrcode Error: ", msg, err);
}
function debounceScanner() { function debounceScanner() {
if(scanner.getState() != Html5QrcodeScannerState.SCANNING) { if(scanner.getState() != Html5QrcodeScannerState.SCANNING) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment