Skip to content

Commit

Permalink
write sync interval to storage
Browse files Browse the repository at this point in the history
  • Loading branch information
itcon-pty-au committed Aug 30, 2024
1 parent 270822b commit 41631f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudbk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 41631f8

Please sign in to comment.