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

fix: better error message if render target not found #161

Merged
merged 1 commit into from
Feb 25, 2020

Conversation

chanind
Copy link
Owner

@chanind chanind commented Feb 25, 2020

This PR explicitly throws an error HanziWriter target element not found: <missing id> when the library is initialized with a non-existent div as the render target. Currently the library will error trying to call nodeName of undefined, which is a very confusing error.

@chanind chanind merged commit 2e6b884 into master Feb 25, 2020
@chanind chanind deleted the better-error-for-missing-target branch February 25, 2020 19:59
@chanind
Copy link
Owner Author

chanind commented Feb 25, 2020

🎉 This PR is included in version 2.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant