mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-18 22:13:58 +00:00
1.2.0
This commit is contained in:
@@ -18,6 +18,7 @@ class Browser {
|
||||
userDataDir: await loadSesion(email),
|
||||
args: [
|
||||
'--no-sandbox',
|
||||
'--mute-audio',
|
||||
'--disable-setuid-sandbox',
|
||||
`--user-agent=${userAgent.userAgent}`,
|
||||
isMobile ? '--window-size=568,1024' : ''
|
||||
|
||||
@@ -28,7 +28,7 @@ export async function goHome(page: Page): Promise<boolean> {
|
||||
// Check if account is suspended
|
||||
const isSuspended = await page.waitForSelector('#suspendedAccountHeader', { visible: true, timeout: 3000 }).then(() => true).catch(() => false)
|
||||
if (isSuspended) {
|
||||
log('GO-HOME', 'This account is suspended!')
|
||||
log('GO-HOME', 'This account is suspended!', 'error')
|
||||
throw new Error('Account has been suspended!')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user