Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
connecting to a JavaScript scanner project
#1
Good afternoon! I have no experience with JS.

I need to connect a QR code scanner to my project. (https://github.com/nimiq/qr-scanner)

I copied the files to my project directory
/js/qr-scanner.min.js
/js/qr-scanner-worker.min.js

and added to ContentFiles
/js/qr-scanner.min.js
/js/qr-scanner-worker.min.js


As far as I understand, this is how I connected the scanner to my project.

How to do this in IW ?
Reply
#2
Trying to run a demo from GitHub on a local computer gives an error :
Access to script at 'file:///D:/Work64/JavaScripts/qr-scanner-master/qr-scanner-master/qr-scanner.min.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

How to "fasten" the scanner to my project on IW?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)