update index.js

This commit is contained in:
naielv
2025-09-02 23:13:12 +02:00
parent e3b062d9ea
commit d5650b2e3b

View File

@@ -26,11 +26,12 @@ PAGES.index = {
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)
// ...
html5QrcodeScanner.clear();
// ^ this will stop the scanner (video feed) and clear the scan area.
}