mirror of
https://github.com/flarum/core.git
synced 2025-07-24 18:21:33 +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();
|
||||
m.redraw();
|
||||
};
|
||||
image.crossOrigin = 'Anonymous';
|
||||
image.crossOrigin = 'anonymous';
|
||||
image.src = this.avatarUrl();
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user