Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
merging parts of #1450
  • Loading branch information
danialfarid committed Aug 24, 2016
1 parent 582571c commit 170ed85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drop.js
Expand Up @@ -163,7 +163,7 @@
}

function extractFilesFromHtml(updateOn, html) {
if (!upload.shouldUpdateOn(updateOn, attr, scope) || !html) return upload.rejectPromise([]);
if (!upload.shouldUpdateOn(updateOn, attr, scope) || typeof html !== 'string') return upload.rejectPromise([]);
var urls = [];
html.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi, function (m, n, src) {
urls.push(src);
Expand Down

0 comments on commit 170ed85

Please sign in to comment.