|
@@ -151,7 +151,9 @@ function on_dat_success(a,b){
|
|
}
|
|
}
|
|
|
|
|
|
function check_if_authfail(a){
|
|
function check_if_authfail(a){
|
|
- if(a == null || typeof a !== "string"){
|
|
|
|
|
|
+ if(a == null || typeof a !== "string") {
|
|
|
|
+ return false;
|
|
|
|
+ }else{
|
|
if(a.indexOf("login?from=") > 0 || a.startsWith("<!DOCTYPE html>") || a.indexOf("<!-- SME::LOGINPAGE -->") > 0){
|
|
if(a.indexOf("login?from=") > 0 || a.startsWith("<!DOCTYPE html>") || a.indexOf("<!-- SME::LOGINPAGE -->") > 0){
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|