qrcodejs
qrcodejs copied to clipboard
Uncaught TypeError: Cannot read property '_android' of undefined
Uncaught TypeError: Cannot read property '_android' of undefined
i met the same error when i use qrcodejs in nwjs project but it's quite strange that the error only appears in build mode
Well, this repo is quite out-dated, and didn't declare 'use strict' originally. The keyword 'this' was used to represent 'window', and it's fine without 'use strict'. But when you build or even dev your project with tools like webpack, you get this undefined error because webpack automatically add 'use strict' for you.
fixed https://github.com/davidshimjs/qrcodejs/pull/114/commits/68668bc3574152d2296c565674a22b5679896edb