mirror of
https://github.com/flarum/core.git
synced 2025-07-27 19:50:20 +02:00
Update User.js
Use recommended `anonymous`, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin
This commit is contained in:
@@ -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();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user