Skip to content

Commit c540ad4

Browse files
committed
FIX: pupeeter launch timeout
1 parent 0c5da96 commit c540ad4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

dist/script/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/script/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/script/abstract-recorder.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as puppeteer from 'puppeteer';
22
import {Args} from './cli';
33

4+
const MAX_INT_32 = (2 ** 31) - 1;
5+
46
export abstract class AbstractRecorder {
57
protected browser: puppeteer.Browser | null = null;
68
protected page: puppeteer.Page | null = null;
@@ -17,6 +19,7 @@ export abstract class AbstractRecorder {
1719
'--allow-file-access-from-files', // Allow file access
1820
],
1921
headless: true,
22+
protocolTimeout: MAX_INT_32,
2023
});
2124
this.page = await this.browser.newPage();
2225
await this.page.goto(`file://${indexHtml}`);

0 commit comments

Comments
 (0)