1
0
mirror of https://github.com/flarum/core.git synced 2025-02-23 18:54:38 +01:00

Update User.js

Use recommended `anonymous`, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin
This commit is contained in:
Daniël Klabbers 2019-10-28 16:35:31 +01:00
parent 2dedfe4b92
commit 937354512b

View File

@ -91,7 +91,7 @@ Object.assign(User.prototype, {
user.freshness = new Date();
m.redraw();
};
image.crossOrigin = 'Anonymous';
image.crossOrigin = 'anonymous';
image.src = this.avatarUrl();
},