kciter / qart.js

Generate artistic QR code. 🎨
https://kciter.github.io/qart.js/
GNU General Public License v3.0
3.15k stars 176 forks source link

minified js ignores version option #14

Closed bariscc closed 7 years ago

bariscc commented 7 years ago

Hi there! Version option works with qart.js but not with qart.min.js. Seems like it always uses 10. I receive the following error no matter what version i set:

Uncaught Error: code length overflow. (1196>976)
    at C (qart.min.js:1)
    at x (qart.min.js:1)
    at M (qart.min.js:1)
    at Object.A.make (qart.min.js:1)
    at t.value (qart.min.js:1)
    at createQart (remote.js:18)
    at HTMLButtonElement.<anonymous> (remote.js:25)
    at HTMLButtonElement.dispatch (jquery.min.js:3)
    at HTMLButtonElement.q.handle (jquery.min.js:3)

Guessing minified js is not up to date.

misteral commented 7 years ago

Fixed in #19. Version up automatically if code length overflow

misteral commented 7 years ago

@bariscc Hi. Please confirm and feel free to reopen issue if any questions.