File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,8 @@ <h1>
173
173
</ p >
174
174
< script type ="text/javascript " src ="../dist/html2canvas.js "> </ script >
175
175
< script type ="text/javascript ">
176
- html2canvas ( document . body , {
177
- onrendered : function ( canvas ) {
178
- document . body . appendChild ( canvas ) ;
179
- }
176
+ html2canvas ( document . body ) . then ( function ( canvas ) {
177
+ document . body . appendChild ( canvas ) ;
180
178
} ) ;
181
179
</ script >
182
180
</ body >
Original file line number Diff line number Diff line change @@ -55,10 +55,8 @@ <h2>More content</h2>
55
55
</ div >
56
56
< script type ="text/javascript " src ="../dist/html2canvas.js "> </ script >
57
57
< script type ="text/javascript ">
58
- html2canvas ( document . body , {
59
- onrendered : function ( canvas ) {
60
- document . body . appendChild ( canvas ) ;
61
- }
58
+ html2canvas ( document . body ) . then ( function ( canvas ) {
59
+ document . body . appendChild ( canvas ) ;
62
60
} ) ;
63
61
</ script >
64
62
</ body >
You can’t perform that action at this time.
0 commit comments