diff --git a/assets/js/logincheck.js b/assets/js/logincheck.js index 7b1c903..7d021a8 100644 --- a/assets/js/logincheck.js +++ b/assets/js/logincheck.js @@ -42,7 +42,7 @@ function checkLoginStatus() { } } -if(document.readyState !== 'loading') { +if(document.readyState === 'complete') { checkLoginStatus(); } else { window.addEventListener("DOMContentLoaded", checkLoginStatus);