diff --git a/epic-games.js b/epic-games.js index a69a3e3..7d359fa 100644 --- a/epic-games.js +++ b/epic-games.js @@ -23,7 +23,7 @@ const context = await chromium.launchPersistentContext(cfg.dir.browser, { // channel: 'chrome', // recommended, but `npx patchright install chrome` clashes with system Chrome - https://github.com/Kaliiiiiiiiii-Vinyzu/patchright-nodejs#best-practice----use-chrome-without-fingerprint-injection headless: false, // don't use cfg.headless headless here since SHOW=0 will lead to captcha viewport: { width: cfg.width, height: cfg.height }, - // locale: 'en-US', // ignore OS locale to be sure to have english text for locators + locale: 'en-US', // ignore OS locale to be sure to have english text for locators recordVideo: cfg.record ? { dir: 'data/record/', size: { width: cfg.width, height: cfg.height } } : undefined, // will record a .webm video for each page navigated; without size, video would be scaled down to fit 800x800 recordHar: cfg.record ? { path: `data/record/eg-${filenamify(datetime())}.har` } : undefined, // will record a HAR file with network requests and responses; can be imported in Chrome devtools handleSIGINT: false, // have to handle ourselves and call context.close(), otherwise recordings from above won't be saved