Fix bug that when window close will make ajax fail and cause cookies set to wrong state
This commit is contained in:
@@ -83,7 +83,6 @@ function checkIfAuth(yesCallback, noCallback) {
|
||||
})
|
||||
.fail(function () {
|
||||
noCallback();
|
||||
setLoginState(false);
|
||||
})
|
||||
.always(function () {
|
||||
checkAuth = true;
|
||||
|
||||
Reference in New Issue
Block a user