Skip to content

Commit

Permalink
allow image to be serve cross origin
Browse files Browse the repository at this point in the history
  • Loading branch information
lacek authored May 28, 2019
1 parent 7236464 commit b3ab6f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function loadImage(text, callback) {
charImages[value] = this;
done(value);
};
img.setAttribute('crossorigin', 'anonymous');
img.src = config.charResMap[value];
}
});
Expand Down Expand Up @@ -265,4 +266,4 @@ $(document.body).ready(function() {
});
}
});
})(jQuery);
})(jQuery);

0 comments on commit b3ab6f4

Please sign in to comment.