mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 23:14:44 +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:
2
vendor/assets/javascripts/favcount.js
vendored
2
vendor/assets/javascripts/favcount.js
vendored
@ -20,6 +20,8 @@
|
|||||||
img = document.createElement('img');
|
img = document.createElement('img');
|
||||||
|
|
||||||
if (self.canvas.getContext) {
|
if (self.canvas.getContext) {
|
||||||
|
img.crossOrigin = "anonymous";
|
||||||
|
|
||||||
img.onload = function() {
|
img.onload = function() {
|
||||||
drawCanvas(self.canvas, self.opacity, self.font, img, normalize(count));
|
drawCanvas(self.canvas, self.opacity, self.font, img, normalize(count));
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user