mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'tweak/auto-notify' into 'dev'
Auto refresh annoucements every 30 minutes See merge request crafty-controller/crafty-4!653
This commit is contained in:
commit
d53b3fc0e2
@ -5,7 +5,7 @@ TBD
|
||||
### Bug fixes
|
||||
TBD
|
||||
### Tweaks
|
||||
TBD
|
||||
- Auto refresh Crafty Announcements on 30m interval ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/653))
|
||||
### Lang
|
||||
- Update zh_CN lang file ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/652))
|
||||
<br><br>
|
||||
|
@ -136,6 +136,10 @@
|
||||
});
|
||||
let responseData = await res.json();
|
||||
console.log(responseData);
|
||||
setTimeout(function() {
|
||||
getAnnouncements();
|
||||
}, 1800);
|
||||
console.log("Registered annoucement fetch event in 30 minutes.")
|
||||
if (responseData.status === "ok") {
|
||||
updateAnnouncements(responseData.data)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user