From bd7e01926b7e7e7b868141c35820dda1769dd358 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 1 Nov 2014 23:42:18 -0700 Subject: [PATCH] Fix missing callback for case of unsupported image types. --- src/Posting/QR.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index d6c037a79..a53a3747f 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -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'