From a58dda32b704f5b1904093a0f5bebab90ec89d70 Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Wed, 27 Dec 2023 17:36:07 +0100 Subject: [PATCH] fix: Refresh hitting too fast after tab visibility change --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 292b145..32f999c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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() }