mirror of
https://github.com/flarum/framework.git
synced 2025-03-11 04:35:16 +08:00
Update User.js
Use recommended `anonymous`, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin
This commit is contained in:
parent
41e97db5d0
commit
4211cbb9cb
@ -91,7 +91,7 @@ Object.assign(User.prototype, {
|
|||||||
user.freshness = new Date();
|
user.freshness = new Date();
|
||||||
m.redraw();
|
m.redraw();
|
||||||
};
|
};
|
||||||
image.crossOrigin = 'Anonymous';
|
image.crossOrigin = 'anonymous';
|
||||||
image.src = this.avatarUrl();
|
image.src = this.avatarUrl();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user