Major Log Refactor & Cleanup
This commit is contained in:
@@ -36,12 +36,10 @@ async function waitForPageFullyLoaded(page, url) {
|
||||
try {
|
||||
// Wait for DOM content and stylesheet to load
|
||||
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 30000 });
|
||||
console.log('Page DOM loaded, waiting for stylesheet...');
|
||||
|
||||
// Wait a brief moment for stylesheet to apply
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
|
||||
console.log('Page stylesheet loaded, switching to live frames');
|
||||
return true;
|
||||
} catch (err) {
|
||||
console.error('Page load error:', err.message);
|
||||
@@ -65,7 +63,7 @@ async function hideLogo(page) {
|
||||
});
|
||||
});
|
||||
} catch (err) {
|
||||
console.error('Logo hide error:', err);
|
||||
// Silent
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user