Skip to content

Commit

Permalink
minor 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Maslov committed Sep 24, 2023
1 parent d58e6b3 commit f44ab98
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion public/wasmWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ importScripts("wasm/koder.js");
const scanResult = koder.decode(data, this.width, this.height);
const t1 = new Date().getTime();
if (scanResult) {
console.log(`Scanned in ${t1-t0} ms`);
postMessage({
data: scanResult.code,
type: scanResult.type,
Expand Down
1 change: 0 additions & 1 deletion src/components/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export default function Scan({
setBtnText(BTN_TXT.START);
await video.pause();
if (video.srcObject) {
console.log("stopping video...")
video.srcObject.getVideoTracks().forEach(track => track.stop());
video.srcObject = null;
}
Expand Down

0 comments on commit f44ab98

Please sign in to comment.