diff --git a/assets/script.js b/assets/script.js index 5bd7943..ebb36b1 100644 --- a/assets/script.js +++ b/assets/script.js @@ -179,15 +179,18 @@ document.addEventListener('DOMContentLoaded', initAjax); function onPageLoad(){ let currentSite = localStorage.getItem("currentSite"); let currentPage = localStorage.getItem("currentPage"); + console.log("We arrived on: " + currentSite + ":" + currentPage + "."); if(currentSite === "home" && currentPage === "settings"){ if(document.getElementById("user-settings")){ getUserInfo(); + console.log("Running user info"); } } if(currentSite === "home" && currentPage === "settings"){ if(document.getElementById("admin-settings")){ listActivationCodes(); listUsers(); + console.log("Running admin info"); } } }