mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-21 23:23:14 +01:00
fix: Refresh hitting too fast after tab visibility change
This commit is contained in:
parent
601f03c82f
commit
a58dda32b7
@ -89,7 +89,7 @@ const restartUpdates = () => {
|
||||
}, interval * 1000)
|
||||
|
||||
// Trigger update immediately if new interval allows it
|
||||
if (lastUpdate + interval < new Date().getTime())
|
||||
if (lastUpdate + (interval * 1000) < Date.now())
|
||||
updateWall()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user