mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05: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
1 changed files with 2 additions and 0 deletions
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 a new issue