update index.js
This commit is contained in:
@@ -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.
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user