fixed cross origin image draw, so that canvas.toDataURL can work
This commit is contained in:
parent
4adf0081b8
commit
218716dee3
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ Metamaps.Backbone.init = function () {
|
||||||
self.Metacode = Backbone.Model.extend({
|
self.Metacode = Backbone.Model.extend({
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
var image = new Image();
|
var image = new Image();
|
||||||
|
image.setAttribute('crossOrigin', 'anonymous');
|
||||||
image.src = this.get('icon');
|
image.src = this.get('icon');
|
||||||
this.set('image',image);
|
this.set('image',image);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue