We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you pass an invalid color into invert you get
Uncaught TypeError: Cannot read property 'r' of null
which is hard to interpret, and doesn't give you much clue that the error is occurring in this package.
I'd be happy to contribute a PR if you're likely to merge it.
The text was updated successfully, but these errors were encountered:
You're very welcome to send a PR.
If you ask me; the only line with a .r is within toRGB() method. I'd validate the c argument and throw "Invalid color value."
.r
toRGB()
c
"Invalid color value."
Sorry, something went wrong.
v1.2.3 is released.
No branches or pull requests
If you pass an invalid color into invert you get
which is hard to interpret, and doesn't give you much clue that the error is occurring in this package.
I'd be happy to contribute a PR if you're likely to merge it.
The text was updated successfully, but these errors were encountered: