Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught ReferenceError: QRErrorCorrectLevel is not defined #23

Open
fotoflo opened this issue Apr 14, 2012 · 3 comments
Open

Uncaught ReferenceError: QRErrorCorrectLevel is not defined #23

fotoflo opened this issue Apr 14, 2012 · 3 comments

Comments

@fotoflo
Copy link

fotoflo commented Apr 14, 2012

i've followed the directions as mentioned in the readme, but am getting this issue

jQuery.qrcode.js:15Uncaught ReferenceError: QRErrorCorrectLevel is not defined, on line 15

@fotoflo
Copy link
Author

fotoflo commented Apr 14, 2012

I think i've fixed that by changing line 15:

        correctLevel    : QRErrorCorrectLevel.H,

to
correctLevel : "QRErrorCorrectLevel.H",

@jwittkoski
Copy link

@fotoflo The fix you listed does not set the QRErrorCorrectLevel as you expect (although it does get rid of the error).

It seems like you would only see this error if you use the src/jquery.qrcode.js file directly instead of the jquery.qrcode.min.js file (which contains both src/jquery.qrcode.js and src/qrcode.js).

See the Makefile for how they are combined.

@j717273419
Copy link

Yeah!

Use jquery.qrcode.min.js,

It's worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants