fix some anti pattern stuff

This commit is contained in:
Mystikfluu
2023-02-10 19:24:05 +01:00
parent 0a46eeee9f
commit 3254d01581
21 changed files with 130 additions and 151 deletions
+2 -2
View File
@@ -129,10 +129,10 @@ async function setAllowCCR() {
let r = await(await post("/api/settings",{setting: settingname, value: ACCR})).json() // skipqc
if(r.status == "error") {
if(r.status === "error") {
alert("Couldn't change setting")
console.log(r.code)
} else if(r.status == "success") {
} else if(r.status === "success") {
//changed setting
}
}