1 Commits

Author SHA1 Message Date
alu 00fa6f2f3b cleanup settings logic 2026-07-15 05:00:28 +00:00
+1 -6
View File
@@ -29,27 +29,22 @@ function handleSettingsChange (event) {
if (getSetting("sync-scheme") !== form.get("sync-scheme")) {
saveBtn.classList.remove("disabled");
saveBtn.classList.add("enabled");
console.log("here1")
}
else if (getSetting("sync-rate") !== Number(form.get("sync-rate"))) {
else if (getSetting("sync-rate") !== form.get("sync-rate")) {
saveBtn.classList.remove("disabled");
saveBtn.classList.add("enabled");
console.log("here2")
}
else if (getSetting("search-criteria") !== form.get("search-criteria")) {
saveBtn.classList.remove("disabled");
saveBtn.classList.add("enabled");
console.log("here3")
}
else if (getSetting("appearance-theme") !== form.get("appearance-theme")) {
saveBtn.classList.remove("disabled");
saveBtn.classList.add("enabled");
console.log("here4")
}
else {
saveBtn.classList.remove("enabled");
saveBtn.classList.add("disabled");
console.log("here5")
}
}