From 2de5b8e4abbefd958bcf45011d1721ebe10764b4 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 20 Oct 2022 21:21:48 +0200 Subject: [PATCH] eg: info depending on NOVNC_PORT --- epic-games.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epic-games.js b/epic-games.js index 30cec9d..eba402b 100644 --- a/epic-games.js +++ b/epic-games.js @@ -67,7 +67,8 @@ try { // page.click('button:has-text("Accept All Cookies")').catch(_ => { }); // not needed anymore since we set the cookie above while (await page.locator('a[role="button"]:has-text("Sign In")').count() > 0) { - console.error("Not signed in anymore. Please login and then navigate to the 'Free Games' page. If using docker, open http://localhost:6080"); + console.error("Not signed in anymore. Please login and then navigate to the 'Free Games' page."); + if (process.env.NOVNC_PORT) console.info(`Open http://localhost:${process.env.NOVNC_PORT} to login inside the docker container.`); context.setDefaultTimeout(0); // give user time to log in without timeout await page.goto(URL_LOGIN, { waitUntil: 'domcontentloaded' });