mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Allow element node to be passed
This commit is contained in:
parent
8ddf10fc04
commit
b2df50a858
@ -1,4 +1,5 @@
|
|||||||
window.html2canvas = function(elements, opts) {
|
window.html2canvas = function(elements, opts) {
|
||||||
|
elements = (elements.length) ? elements : [elements];
|
||||||
var queue,
|
var queue,
|
||||||
canvas,
|
canvas,
|
||||||
options = {
|
options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user