mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:59:50 +08:00
FIX: Allow Favcount to be used with CORS. I've submitted this upstream
too: https://github.com/chrishunt/favcount/pull/8
This commit is contained in:
parent
97dd560d84
commit
7b20079d85
2
vendor/assets/javascripts/favcount.js
vendored
2
vendor/assets/javascripts/favcount.js
vendored
|
@ -20,6 +20,8 @@
|
|||
img = document.createElement('img');
|
||||
|
||||
if (self.canvas.getContext) {
|
||||
img.crossOrigin = "anonymous";
|
||||
|
||||
img.onload = function() {
|
||||
drawCanvas(self.canvas, self.opacity, self.font, img, normalize(count));
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user