fix: Refresh hitting too fast after tab visibility change

This commit is contained in:
Marcel Hellkamp 2023-12-27 17:36:07 +01:00
parent 601f03c82f
commit a58dda32b7

View File

@ -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()
}