Skip to content

Commit abc0273

Browse files
committed
Default timeout added
1 parent 72e9de6 commit abc0273

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/App.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async function generateTempFile(event: IEvent) {
125125
event.outputExt ||= ext;
126126

127127
const {
128-
timeout = 15000,
128+
timeout,
129129
mobile = true,
130130
height = mobile ? 800 : 900,
131131
width = mobile ? 400 : 1024,
@@ -142,7 +142,7 @@ async function generateTempFile(event: IEvent) {
142142
event.pdf = pdf;
143143
event.html = html;
144144
event.stopTest = stopTest;
145-
event.timeout = timeout;
145+
event.timeout = timeout ?? 15000;
146146

147147
if (event.output) {
148148
return;

src/commands/Command.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,10 @@ export default abstract class Command {
119119
const {
120120
url,
121121
content,
122-
timeout = 15000,
123122
mobile = true,
124123
height = mobile ? 800 : 900,
125124
width = mobile ? 400 : 1024,
126125
deviceScaleFactor = mobile ? 2: 1,
127-
pdf = null,
128-
html = null,
129-
stopTest = "window.pageReady",
130-
output,
131126
video,
132127
} = event;
133128

0 commit comments

Comments
 (0)