Skip to content

Commit

Permalink
Improve performances
Browse files Browse the repository at this point in the history
  • Loading branch information
Elanis committed Apr 7, 2023
1 parent bb11ff1 commit 96e9d00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ class PersonalStats {
}
}

await AppDataManager.saveObject('personalStats', 'localData', localData);
if((new Date()).getSeconds() === 0) {
await AppDataManager.saveObject('personalStats', 'localData', localData);
}
}
}

Expand Down

0 comments on commit 96e9d00

Please sign in to comment.