diff --git a/js/headfoot.js b/js/headfoot.js index 1606697dffd1cc29d058c2d5b2498636ae83e152..b5c6f81998050c1da9a49138bad99578b22851a0 100755 --- a/js/headfoot.js +++ b/js/headfoot.js @@ -11,11 +11,11 @@ function prependChild(parent,child){ } function userAuthenticated(){ - console.log(document.getElementById('loginswitch').href); + console.log(document.getElementById('loginswitch').getAttribute('authenticated')); let params = new URLSearchParams(window.location.search); if(params.get('isAuthenticatedUser')){ return true; - }else if(document.getElementById('loginswitch').href == '1'){ + }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '1'){ return true; }else{ return false;