|
|
@ -141,14 +141,15 @@ async function skipNotices (app) { |
|
|
|
if (button && button.html() === 'Accept') { |
|
|
|
if (button && button.html() === 'Accept') { |
|
|
|
// still notices to accept
|
|
|
|
// still notices to accept
|
|
|
|
const termsPage = app.find('.markdown')[0] |
|
|
|
const termsPage = app.find('.markdown')[0] |
|
|
|
|
|
|
|
if (!termsPage) { |
|
|
|
|
|
|
|
debugger |
|
|
|
|
|
|
|
break |
|
|
|
|
|
|
|
} |
|
|
|
termsPage.scrollTop = termsPage.scrollHeight |
|
|
|
termsPage.scrollTop = termsPage.scrollHeight |
|
|
|
await timeout() |
|
|
|
await timeout() |
|
|
|
console.log('Clearing notice') |
|
|
|
|
|
|
|
button.click() |
|
|
|
button.click() |
|
|
|
await timeout() |
|
|
|
await timeout() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
console.dir(button) |
|
|
|
|
|
|
|
// exit loop
|
|
|
|
|
|
|
|
console.log('No more notices...') |
|
|
|
console.log('No more notices...') |
|
|
|
break |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|