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

Add support for using JsBarcode in implementations that don't implement measureText #367

Merged
merged 1 commit into from
Apr 25, 2021

Conversation

nvdbleek
Copy link
Contributor

We use an HTML to PDF converter which returns undefined for ctx.measureText(). In this PR we return 0 instead of crashing the JavaScript code.

I was not able to run node_modules/gulp/bin/gulp.js lint as it complains about ' Unexpected top-level property "predef".' in .eslintrc.

If I need to do something else, please let me know

@nvdbleek nvdbleek force-pushed the measure-text-fix-pr branch from 262fe59 to 6189182 Compare April 24, 2021 17:30
@lindell
Copy link
Owner

lindell commented Apr 25, 2021

Hi and thanks for the contribution 🙂

@lindell lindell merged commit b86e391 into lindell:master Apr 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants