File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " capture-template" ,
3
- "version" : " 1.0.5 " ,
3
+ "version" : " 1.0.6 " ,
4
4
"description" : " This library is responsible for expanding a template web page and then capturing it PNG or PDF." ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ export class WebPageRenderer implements IWebPageRenderer {
73
73
const nightmareOptions : any = {
74
74
show : false ,
75
75
frame : false ,
76
+ maxHeight : 1000000 ,
77
+ maxWidth : 1000000 ,
76
78
} ;
77
79
78
80
if ( this . electronPath ) {
@@ -150,9 +152,9 @@ export class WebPageRenderer implements IWebPageRenderer {
150
152
this . nightmare . goto ( webPageUrl ) ;
151
153
this . nightmare . wait ( options . waitSelector ) ;
152
154
await this . nightmare . evaluate (
153
- ( catureSelector : string ) => {
155
+ ( captureSelector : string ) => {
154
156
const body = document . querySelector ( 'body' ) ;
155
- const element = document . querySelector ( catureSelector ) ;
157
+ const element = document . querySelector ( captureSelector ) ;
156
158
const rect = element . getBoundingClientRect ( ) ;
157
159
return {
158
160
bodyWidth : body . scrollWidth ,
You can’t perform that action at this time.
0 commit comments