This commit is contained in:
TheNetsky
2024-05-09 10:04:11 +02:00
parent da9ba91c5c
commit ef6ad569ff
6 changed files with 12 additions and 4 deletions

View File

@@ -181,7 +181,8 @@ export class MicrosoftRewardsBot {
await saveSessionData(this.config.sessionPath, browser, account.email, this.isMobile)
// Close desktop browser
return await this.closeBrowser(browser, account.email)
await this.closeBrowser(browser, account.email)
return
}
// Mobile
@@ -241,7 +242,8 @@ export class MicrosoftRewardsBot {
log('MAIN-POINTS', `The script collected ${this.collectedPoints} points today`)
// Close mobile browser
return await this.closeBrowser(browser, account.email)
await this.closeBrowser(browser, account.email)
return
}
private async closeBrowser(browser: BrowserContext, email: string) {