From 8953d59fd258233c67b5d4b3105f2ed964e409f3 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 30 Aug 2024 13:32:52 +1000 Subject: [PATCH] write sync interval to localStorage --- cloudbk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudbk.js b/cloudbk.js index 517d9fb..8daad44 100644 --- a/cloudbk.js +++ b/cloudbk.js @@ -237,7 +237,7 @@ if (cloudButtonDiv) { localStorage.setItem('last-cloud-sync', currentTime); }); const syncInterval = parseInt(localStorage.getItem('sync-interval'), 10) || 5; - if (localStorage.getItem('sync-interval')) { + if (!localStorage.getItem('sync-interval')) { localStorage.setItem('sync-interval', 5) } if (syncInterval > 0 && localStorage.getItem("clouddb-backup-enabled") === "true") {