mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-22 07:54:00 +00:00
Formatting + General Improvements
- Added cookie header function - Added failback to html parsing for dashboard data - Removed some logs
This commit is contained in:
@@ -23,9 +23,9 @@ export class Quiz extends Workers {
|
||||
)
|
||||
|
||||
try {
|
||||
this.cookieHeader = (this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop)
|
||||
.map((c: { name: string; value: string }) => `${c.name}=${c.value}`)
|
||||
.join('; ')
|
||||
this.cookieHeader = this.bot.browser.func.buildCookieHeader(
|
||||
this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop
|
||||
)
|
||||
|
||||
const fingerprintHeaders = { ...this.bot.fingerprint.headers }
|
||||
delete fingerprintHeaders['Cookie']
|
||||
|
||||
Reference in New Issue
Block a user