diff --git a/src/Util.js b/src/Util.js index a77c35b..baa0325 100644 --- a/src/Util.js +++ b/src/Util.js @@ -1,4 +1,5 @@ window.html2canvas = function(elements, opts) { + elements = (elements.length) ? elements : [elements]; var queue, canvas, options = {