Skip to content

Commit

Permalink
Fix Bug 54679 - Client.Profile. Failed to execute 'toDataURL' on 'HTM…
Browse files Browse the repository at this point in the history
…LCanvasElement': Tainted canvases may not be exported
  • Loading branch information
AlexeySafronov committed Dec 23, 2021
1 parent dc7b267 commit dc3c7b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class AvatarEditorBody extends React.Component {
onSaveImage() {
var img = new Image();
var _this = this;
img.crossOrigin = "Anonymous";
img.src = this.state.image;
if (!this.state.image) _this.props.onLoadFile(null);
img.onload = () => {
Expand Down

0 comments on commit dc3c7b5

Please sign in to comment.