fix: set default viewport to 1920x1080 for desktop view rendering in headless
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ async function run() {
|
||||
// Create a clean isolated context for each account to prevent session leaks
|
||||
const context = await browser.newContext({
|
||||
permissions: ['clipboard-read', 'clipboard-write'],
|
||||
viewport: null
|
||||
viewport: { width: 1920, height: 1080 }
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user