Advertisement
Guest User

Untitled

a guest
Jul 30th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <html>
  2. <!-- the javascript bindings -->
  3. <script src="qr_rust.js"></script>
  4. <script>
  5. wasm_bindgen('qr_rust_bg.wasm')
  6. .then(() => {
  7. console.log('it is loaded!');
  8. const { decode_qr } = wasm_bindgen;
  9. const output = decode_qr(new Uint8Array([1,2,3,4,5]));
  10. console.log("output of decode_qr:", output);
  11. })
  12. .catch(console.error);
  13. </script>
  14. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement