mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-11 17:56:15 +00:00
Feature: Improved handling of wait times for page checks and reloads, using a 10s timeout for slower networks
This commit is contained in:
@@ -209,6 +209,7 @@ export default class BrowserUtil {
|
||||
this.bot.log(this.bot.isMobile, 'RELOAD-BAD-PAGE', `Bad page detected (${errorType}), reloading!`)
|
||||
await page.reload({ waitUntil: 'domcontentloaded' })
|
||||
// IMPROVED: Use smart wait instead of fixed 1500ms delay
|
||||
// FIXED: Use default 10s timeout for page reload
|
||||
await waitForPageReady(page)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user