mirror of https://github.com/status-im/codimd.git
Fix bug that when window close will make ajax fail and cause cookies set to wrong state
This commit is contained in:
parent
23008bc1e1
commit
c2f0943b49
|
@ -83,7 +83,6 @@ function checkIfAuth(yesCallback, noCallback) {
|
||||||
})
|
})
|
||||||
.fail(function () {
|
.fail(function () {
|
||||||
noCallback();
|
noCallback();
|
||||||
setLoginState(false);
|
|
||||||
})
|
})
|
||||||
.always(function () {
|
.always(function () {
|
||||||
checkAuth = true;
|
checkAuth = true;
|
||||||
|
|
Loading…
Reference in New Issue