From 60ef51b7f5a2ff58751d7cfea004d53983c9a7bd Mon Sep 17 00:00:00 2001 From: FlorianZahn Date: Mon, 11 Oct 2021 03:50:19 +0200 Subject: [PATCH] I forgot to change the 24h countdown back to 24h instead of 1 seconds --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 2f37cf01..4db051e7 100644 --- a/src/content.ts +++ b/src/content.ts @@ -772,7 +772,7 @@ function getVipSegmentsWarnings(id: string): void { async function isVipLookup() { const currentTime = Date.now(); const lastUpdate = Config.config.lastIsVipUpdate; - if (currentTime - lastUpdate > 1) { //max every 24 hours 1000*60*60*24 + if (currentTime - lastUpdate > 1000*60*60*24) { //max every 24 hours 1000*60*60*24 Config.config.lastIsVipUpdate = currentTime; utils.sendRequestToServer("GET", "/api/isUserVIP?userID=" + Config.config.userID, (response) => {