cleanup settings logic

This commit is contained in:
2026-07-14 22:13:23 +00:00
parent 526b2a0ff0
commit 0752394d69
5 changed files with 78 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;
}