mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-30 08:51:02 +00:00
feat: Centralize timeout constants and improve navigation error handling in Login flow
This commit is contained in:
@@ -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)])
|
||||
|
||||
Reference in New Issue
Block a user