From c2f0943b492280751527b13b6ec7048b9202887c Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 18 Sep 2016 16:42:59 +0800 Subject: [PATCH] Fix bug that when window close will make ajax fail and cause cookies set to wrong state --- public/js/common.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/js/common.js b/public/js/common.js index 0c9455f..11c32ac 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -83,7 +83,6 @@ function checkIfAuth(yesCallback, noCallback) { }) .fail(function () { noCallback(); - setLoginState(false); }) .always(function () { checkAuth = true;