add cross channel reply setting

This commit is contained in:
Mystikfluu
2022-07-26 00:53:11 +02:00
parent b942dd73cd
commit e788d84194
4 changed files with 30 additions and 1 deletions
+15
View File
@@ -139,3 +139,18 @@ async function changeUsername() {
setuser()
}
}
async function setAllowCCR() {
const ACCR = document.getElementById("ACCR_checkbox").checked
const settingname = "ACCR" //Allow Cross-Channel reply (see #22 )
let r = await(await post("/api/settings",{setting: settingname, value: ACCR})).json()
if(r.status == "error") {
alert("Couldn't change setting")
console.log(r.code)
} else if(r.status == "success") {
//changed setting
}
}