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") {