Skip to content

Commit 2de9985

Browse files
committed
Change order of set/from in example
1 parent 13f1011 commit 2de9985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var opt = {
9898
};
9999

100100
// New Promise-based usage:
101-
html2pdf().from(element).set(opt).save();
101+
html2pdf().set(opt).from(element).save();
102102

103103
// Old monolithic-style usage:
104104
html2pdf(element, opt);

0 commit comments

Comments
 (0)