Skip to content

Commit 2122b02

Browse files
authored
fix: disable viewport emulation in headed mode (#87)
1 parent 94748ec commit 2122b02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

daemon/src/browser-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ export class BrowserManager {
356356

357357
const context = await this.dependencies.launchPersistentContext(profileDir, {
358358
headless,
359+
viewport: headless ? undefined : null,
359360
ignoreHTTPSErrors,
360361
handleSIGINT: false,
361362
handleSIGTERM: false,

0 commit comments

Comments
 (0)