diff --git a/__wasm/deno_rust_wasm_qr_decode/index.htm b/__wasm/deno_rust_wasm_qr_decode/index.htm index b7caace..ee1c356 100644 --- a/__wasm/deno_rust_wasm_qr_decode/index.htm +++ b/__wasm/deno_rust_wasm_qr_decode/index.htm @@ -6,6 +6,7 @@
Drop file(s) here
+
\ No newline at end of file diff --git a/__wasm/deno_rust_wasm_qr_decode/index.js b/__wasm/deno_rust_wasm_qr_decode/index.js index a68bd61..817ab56 100644 --- a/__wasm/deno_rust_wasm_qr_decode/index.js +++ b/__wasm/deno_rust_wasm_qr_decode/index.js @@ -33,8 +33,9 @@ function handleFileSelect(evt) { // debugger; console.log(typeof bs); console.log(bs); - let qr_result = decode_qr(bs); + let qr_result = decode_qr(new Uint8Array(bs)); console.log(qr_result); + document.getElementById('result').innerText = JSON.stringify(JSON.parse(qr_result), null, 4); } }; var blob = f.slice(0, f.size);