Skip to content

Commit

Permalink
write sync interval to localStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
itcon-pty-au committed Aug 30, 2024
1 parent 41631f8 commit 8953d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudbk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 8953d59

Please sign in to comment.