From 41631f8c450eb3116679df21c8dac89964d16412 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 30 Aug 2024 13:20:15 +1000 Subject: [PATCH] write sync interval to storage --- cloudbk.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloudbk.js b/cloudbk.js index 597f385..517d9fb 100644 --- a/cloudbk.js +++ b/cloudbk.js @@ -237,6 +237,9 @@ if (cloudButtonDiv) { localStorage.setItem('last-cloud-sync', currentTime); }); const syncInterval = parseInt(localStorage.getItem('sync-interval'), 10) || 5; + if (localStorage.getItem('sync-interval')) { + localStorage.setItem('sync-interval', 5) + } if (syncInterval > 0 && localStorage.getItem("clouddb-backup-enabled") === "true") { setInterval(async () => { await exportToCloud();