From d187ce6e2e8f380df96c37060c276a54afa79230 Mon Sep 17 00:00:00 2001 From: adrapier03 Date: Tue, 7 Jul 2026 23:31:09 +0700 Subject: [PATCH] fix: set default viewport to 1920x1080 for desktop view rendering in headless --- automation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation.js b/automation.js index e84c469..35c57cd 100644 --- a/automation.js +++ b/automation.js @@ -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 {