Skip to content

Commit

Permalink
Merge pull request #8 from aras-digital/feature/iframe-added
Browse files Browse the repository at this point in the history
timeout deleted
  • Loading branch information
sefakeremkocakoglu authored Jun 11, 2024
2 parents 0084463 + 9b8420e commit 6e31fc2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zbar-wasm/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,8 @@ function detect(source) {
// el.result.innerText = JSON.stringify(symbols, null, 2)
if (symbols[0]?.typeName) {
const decodedValue = symbols[0]?.decode();
//alert(decodedValue)

stopStream()
setTimeout(()=>{
parent.postMessage({ type: 'decodedValue', value: decodedValue }, '*');
}, 500);
window.parent.postMessage({ type: symbols[0]?.typeName, value: decodedValue }, '*');
}


Expand Down

0 comments on commit 6e31fc2

Please sign in to comment.