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

TypeError: Cannot read property 'height' of undefined #181

Open
zedL opened this issue Jun 5, 2020 · 3 comments
Open

TypeError: Cannot read property 'height' of undefined #181

zedL opened this issue Jun 5, 2020 · 3 comments

Comments

@zedL
Copy link

zedL commented Jun 5, 2020

When used with option { inversionAttempts: 'onlyInvert' }
an error is thrown => TypeError: Cannot read property 'height' of undefined

@kelh93
Copy link

kelh93 commented Jan 29, 2021

@zedL
native code,
var shouldInvert = options.inversionAttempts === "attemptBoth" || options.inversionAttempts === "invertFirst"; var tryInvertedFirst = options.inversionAttempts === "onlyInvert" || options.inversionAttempts === "invertFirst";
should be edit as
var shouldInvert = options.inversionAttempts === "attemptBoth" || options.inversionAttempts === "invertFirst" || options.inversionAttempts === "onlyInvert"; var tryInvertedFirst = options.inversionAttempts === "invertFirst";
try this, it works
78990088-ca8ddf80-7b35-11ea-943d-f12515fced24

@eyeq
Copy link

eyeq commented Apr 26, 2021

#118

@danimoh
Copy link

danimoh commented Aug 9, 2021

This is being fixed in PR #148 which is however unfortunately not merged yet.
If you are interested, have a look at https://github.com/nimiq/qr-scanner which uses a jsQR fork that already merged this PR and a couple others, as this repo is unfortunately not being maintained much lately.

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

4 participants