mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-25 00:53:15 +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)
|
}, interval * 1000)
|
||||||
|
|
||||||
// Trigger update immediately if new interval allows it
|
// Trigger update immediately if new interval allows it
|
||||||
if (lastUpdate + interval < new Date().getTime())
|
if (lastUpdate + (interval * 1000) < Date.now())
|
||||||
updateWall()
|
updateWall()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user