`;
var html5QrcodeScanner = new Html5QrcodeScanner(
qrscan, { fps: 10, qrbox: 250 });
function onScanSuccess(decodedText, decodedResult) {
html5QrcodeScanner.clear();
// Handle on success condition with the decoded text or result.
// alert(`Scan result: ${decodedText}`, decodedResult);
setUrlHash(decodedText)
// ...
// ^ this will stop the scanner (video feed) and clear the scan area.
}
html5QrcodeScanner.render(onScanSuccess);
EventListeners.QRScanner.push(html5QrcodeScanner)
}
}