1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add logging

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-10-03 15:30:35 -04:00
parent 101e1ec7b6
commit 6f5a0284d5

View File

@ -26,6 +26,8 @@ async function getMainWindow(app: ElectronApplication, timeout = 50_000): Promis
const stdoutStream = new Writable(stdoutBuffer);
const handler = (page: Page) => {
console.log(`Page opened: ${page.url()}`);
if (page.url().startsWith("http://localhost")) {
cleanup();
resolve(page);