mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Auto refresh annoucements every 30 minutes
This commit is contained in:
parent
c49159a0e5
commit
2461c32641
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user