Fix missing callback for case of unsupported image types.

This commit is contained in:
ccd0 2014-11-01 23:42:18 -07:00
parent 481e0452e8
commit bd7e01926b

View File

@ -341,6 +341,8 @@ QR =
QR.error "#{file.name}: Image too small (image: #{height}x#{width}px, min: #{QR.min_height}x#{QR.min_width}px)"
pass = false
cb pass, img
img.onerror = ->
cb false, null
img.src = URL.createObjectURL file
else if /^video\//.test file.type
video = $.el 'video'