cleanup settings logic

This commit is contained in:
alu
2026-07-15 05:03:07 +00:00
parent 526b2a0ff0
commit 33db3c15b8
5 changed files with 73 additions and 71 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
import { getSyncSettings, requestAPI } from "./utils.js";
import { getSetting, requestAPI } from "./utils.js";
export async function setupClientSync (callback) {
const { scheme, rate } = getSyncSettings();
const scheme = getSetting("sync-scheme");
const rate = getSetting("sync-rate");
if (scheme === "never") {
return;
}