From 7b20079d852dfef62f8afca2949c9a2f9c43d49f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 23 Jan 2014 11:07:10 -0500 Subject: [PATCH] FIX: Allow Favcount to be used with CORS. I've submitted this upstream too: https://github.com/chrishunt/favcount/pull/8 --- vendor/assets/javascripts/favcount.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/assets/javascripts/favcount.js b/vendor/assets/javascripts/favcount.js index 3528d5b2562..cca4e25dd1b 100644 --- a/vendor/assets/javascripts/favcount.js +++ b/vendor/assets/javascripts/favcount.js @@ -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)); };