Skip to content

Commit

Permalink
try to no taint canvas for download
Browse files Browse the repository at this point in the history
  • Loading branch information
gissehel committed Jul 24, 2024
1 parent 2a745aa commit 8a1ec50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/DomAccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class DomAccess {
case 'attr': {
const props = features.attr;
Object.keys(props).forEach((key) => {
element[key] = props[key];
element.setAttribute(key, props[key]);
});
}
break;
Expand Down
3 changes: 3 additions & 0 deletions src/ImageOverlayUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export default class ImageOverlayUi {

this.setLoading();
this._image = this._domAccess.createElement('img', {
attr: {
'crossorigin' : 'anonymous',
},
classNames: ['qilvgallery_image'],
parent: this._a,
onLoad: () => this.setIsLoaded(),
Expand Down

0 comments on commit 8a1ec50

Please sign in to comment.