mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01: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();
|
let responseData = await res.json();
|
||||||
console.log(responseData);
|
console.log(responseData);
|
||||||
|
setTimeout(function() {
|
||||||
|
getAnnouncements();
|
||||||
|
}, 1800);
|
||||||
|
console.log("Registered annoucement fetch event in 1 hour.")
|
||||||
if (responseData.status === "ok") {
|
if (responseData.status === "ok") {
|
||||||
updateAnnouncements(responseData.data)
|
updateAnnouncements(responseData.data)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user