From 2461c326418f08da860b33fde4600d0687387e0e Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 20 Oct 2023 15:36:57 -0500 Subject: [PATCH] Auto refresh annoucements every 30 minutes --- app/frontend/templates/notify.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/frontend/templates/notify.html b/app/frontend/templates/notify.html index 4527d46b..060b9d8a 100644 --- a/app/frontend/templates/notify.html +++ b/app/frontend/templates/notify.html @@ -136,6 +136,10 @@ }); let responseData = await res.json(); console.log(responseData); + setTimeout(function() { + getAnnouncements(); + }, 1800); + console.log("Registered annoucement fetch event in 1 hour.") if (responseData.status === "ok") { updateAnnouncements(responseData.data) } else {