Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Fix: home page background caching
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmod committed Apr 16, 2020
1 parent 74c2cbb commit ddebb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactNative/js/screens/Home/components/Background.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const useBackgroundImage = () => {
};
if (
!url ||
Settings.get('backgroundTimestamp') > Date.now() - 1000 * 60 * 60 * 12 // check every 12h
Settings.get('backgroundTimestamp') < Date.now() - 1000 * 60 * 60 * 4 // check every 4h
) {
fetchBackground();
}
Expand Down

0 comments on commit ddebb5a

Please sign in to comment.