debug prints
This commit is contained in:
parent
3947bbb52a
commit
f33837f023
@ -179,15 +179,18 @@ document.addEventListener('DOMContentLoaded', initAjax);
|
|||||||
function onPageLoad(){
|
function onPageLoad(){
|
||||||
let currentSite = localStorage.getItem("currentSite");
|
let currentSite = localStorage.getItem("currentSite");
|
||||||
let currentPage = localStorage.getItem("currentPage");
|
let currentPage = localStorage.getItem("currentPage");
|
||||||
|
console.log("We arrived on: " + currentSite + ":" + currentPage + ".");
|
||||||
if(currentSite === "home" && currentPage === "settings"){
|
if(currentSite === "home" && currentPage === "settings"){
|
||||||
if(document.getElementById("user-settings")){
|
if(document.getElementById("user-settings")){
|
||||||
getUserInfo();
|
getUserInfo();
|
||||||
|
console.log("Running user info");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(currentSite === "home" && currentPage === "settings"){
|
if(currentSite === "home" && currentPage === "settings"){
|
||||||
if(document.getElementById("admin-settings")){
|
if(document.getElementById("admin-settings")){
|
||||||
listActivationCodes();
|
listActivationCodes();
|
||||||
listUsers();
|
listUsers();
|
||||||
|
console.log("Running admin info");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user