mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
a674c14409
commit
c4e343d988
|
@ -144,7 +144,7 @@ updateAllChat(false);
|
|||
// WINDOW LISTENER
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
// theme selector
|
||||
changeGuiDesign(config.theme)
|
||||
changeGuiDesign(config.theme);
|
||||
|
||||
const userInfoFields = [
|
||||
"user_info_image",
|
||||
|
@ -2230,9 +2230,8 @@ function sendFileReq(dxcall, file) {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
function changeGuiDesign(design) {
|
||||
console.log(design)
|
||||
console.log(design);
|
||||
if (
|
||||
design != "default" &&
|
||||
design != "default_light" &&
|
||||
|
@ -2285,7 +2284,4 @@ if (
|
|||
|
||||
//update path to css file
|
||||
document.getElementById("bootstrap_theme").href = escape(theme_path);
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -337,7 +337,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
document.getElementById("autoTuneSwitch").checked = false;
|
||||
}
|
||||
// theme selector
|
||||
changeGuiDesign(config.theme)
|
||||
changeGuiDesign(config.theme);
|
||||
|
||||
// Update channel selector
|
||||
document.getElementById("update_channel_selector").value =
|
||||
|
@ -3360,10 +3360,7 @@ function loadSettings(elements) {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
function changeGuiDesign(design) {
|
||||
|
||||
if (
|
||||
design != "default" &&
|
||||
design != "default_light" &&
|
||||
|
@ -3424,7 +3421,4 @@ function changeGuiDesign(design){
|
|||
|
||||
//update path to css file
|
||||
document.getElementById("bootstrap_theme").href = escape(theme_path);
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue