Full code cleanup

This commit is contained in:
Pieter Vander Vennet 2022-01-26 21:40:38 +01:00
parent 3a4a2a2016
commit fa971ffbbf
300 changed files with 16352 additions and 19284 deletions

View file

@ -6,14 +6,14 @@ import {QueryParameters} from "./Logic/Web/QueryParameters";
const layout = QueryParameters.GetQueryParameter("layout", undefined).data ?? ""
const customLayout = QueryParameters.GetQueryParameter("userlayout", undefined).data ?? ""
const l = window.location;
if( layout !== ""){
if(window.location.host.startsWith("127.0.0.1")){
window.location.replace(l.protocol + "//" + window.location.host+"/theme.html"+ l.search + "&layout="+layout + l.hash);
}else{
window.location.replace(l.protocol + "//" + window.location.host+"/"+layout+".html"+ l.search + l.hash);
if (layout !== "") {
if (window.location.host.startsWith("127.0.0.1")) {
window.location.replace(l.protocol + "//" + window.location.host + "/theme.html" + l.search + "&layout=" + layout + l.hash);
} else {
window.location.replace(l.protocol + "//" + window.location.host + "/" + layout + ".html" + l.search + l.hash);
}
}else if (customLayout !== ""){
window.location.replace(l.protocol + "//" + window.location.host+"/theme.html"+ l.search + l.hash);
} else if (customLayout !== "") {
window.location.replace(l.protocol + "//" + window.location.host + "/theme.html" + l.search + l.hash);
}