From 9f97805517041e60dddd90274c02834165ae6a1f Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 21 Dec 2023 16:38:12 +0100 Subject: [PATCH] debug navigator.{userAgent, platform} --- epic-games.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/epic-games.js b/epic-games.js index 880e337..349b726 100644 --- a/epic-games.js +++ b/epic-games.js @@ -50,9 +50,8 @@ await stealth(context); if (!cfg.debug) context.setDefaultTimeout(cfg.timeout); const page = context.pages().length ? context.pages()[0] : await context.newPage(); // should always exist -// console.debug('userAgent:', await page.evaluate(() => navigator.userAgent)); // eslint-disable-next-line no-undef -if (cfg.debug) console.debug(await page.evaluate(() => window.screen)); +if (cfg.debug) console.debug(await page.evaluate(() => [window.screen, navigator.userAgent, navigator.platform])); if (cfg.debug_network) { // const filter = _ => true; const filter = r => r.url().includes('store.epicgames.com');