feat: Centralize timeout constants and improve navigation error handling in Login flow

This commit is contained in:
2025-11-09 18:58:25 +01:00
parent 123b2f76b8
commit 5f9aafdd0f
4 changed files with 129 additions and 375 deletions

View File

@@ -308,7 +308,8 @@ export class Search extends Workers {
const trendsData = this.extractJsonFromResponse(rawText)
if (!trendsData) {
throw this.bot.log(this.bot.isMobile, 'SEARCH-GOOGLE-TRENDS', 'Failed to parse Google Trends response', 'error')
this.bot.log(this.bot.isMobile, 'SEARCH-GOOGLE-TRENDS', 'Failed to parse Google Trends response', 'error')
throw new Error('Failed to parse Google Trends response')
}
const mappedTrendsData = trendsData.map(query => [query[0], query[9]!.slice(1)])