Skip to content

Commit

Permalink
Allow to specify crossOrigin attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
vyorkin committed Aug 25, 2015
1 parent bc4f9ad commit efc851a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dropzone.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,8 @@ class Dropzone extends Emitter
# See https://github.com/enyo/dropzone/pull/226
img = document.createElement "img"

img.crossOrigin = file.crossOrigin if file.crossOrigin

img.onload = =>
file.width = img.width
file.height = img.height
Expand Down

0 comments on commit efc851a

Please sign in to comment.