fix: Case where GJO/CSET-foretelll cookies are outdated and the program enters an infinite loop is now fixed.

This commit is contained in:
NunoSempere 2021-07-04 23:37:08 +02:00
parent 843d69d937
commit c46c0242a2

View File

@ -126,6 +126,10 @@ async function fetchStats(questionUrl, cookie){
} }
function isEnd(html){ function isEnd(html){
if(html.includes("You need to sign in or sign up before continuing")){
throw Error("You need to sign in or sign up before continuing")
}
let isEndBool = html.includes("No questions match your filter") let isEndBool = html.includes("No questions match your filter")
if(isEndBool){ if(isEndBool){
//console.log(html) //console.log(html)