We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0022acb commit 0b7e886Copy full SHA for 0b7e886
src/lib/processSnapshot.ts
@@ -17,7 +17,7 @@ export default async (snapshot: Snapshot, ctx: Context): Promise<Record<string,
17
javaScriptEnabled: ctx.config.enableJavaScript,
18
userAgent: constants.CHROME_USER_AGENT,
19
}
20
- if (!ctx.browser) {
+ if (!ctx.browser?.isConnected()) {
21
if (ctx.env.HTTP_PROXY || ctx.env.HTTPS_PROXY) launchOptions.proxy = { server: ctx.env.HTTP_PROXY || ctx.env.HTTPS_PROXY };
22
ctx.browser = await chromium.launch(launchOptions);
23
ctx.log.debug(`Chromium launched with options ${JSON.stringify(launchOptions)}`);
0 commit comments