Skip to content

Commit

Permalink
Default timeout added
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Sep 13, 2023
1 parent 72e9de6 commit abc0273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async function generateTempFile(event: IEvent) {
event.outputExt ||= ext;

const {
timeout = 15000,
timeout,
mobile = true,
height = mobile ? 800 : 900,
width = mobile ? 400 : 1024,
Expand All @@ -142,7 +142,7 @@ async function generateTempFile(event: IEvent) {
event.pdf = pdf;
event.html = html;
event.stopTest = stopTest;
event.timeout = timeout;
event.timeout = timeout ?? 15000;

if (event.output) {
return;
Expand Down
5 changes: 0 additions & 5 deletions src/commands/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,10 @@ export default abstract class Command {
const {
url,
content,
timeout = 15000,
mobile = true,
height = mobile ? 800 : 900,
width = mobile ? 400 : 1024,
deviceScaleFactor = mobile ? 2: 1,
pdf = null,
html = null,
stopTest = "window.pageReady",
output,
video,
} = event;

Expand Down

0 comments on commit abc0273

Please sign in to comment.