-
Notifications
You must be signed in to change notification settings - Fork 57
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
It is failure in the Mobile browser #20
Comments
Added in README.md Storing an image from a foreign origin. |
Problem solved? |
Hi, thank you for your solution and solution address.
|
👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it is no problem in the Google browser.But it has problem in the Mobile browser.
And it tips: ''error: DOMException" and i get the color is white.
Info: In React.
Code:
` imgRef = (e) => {
this.imgDom = e
};
handleImageLoaded = () => {
let that=this;
if(this.imgDom){
const fac = new FastAverageColor();
fac.getColorAsync(this.imgDom, function (color) {
that.setState({
bodyBgColor: color,
});
});
}
};
The text was updated successfully, but these errors were encountered: