mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
banner dynamic work on doc
This commit is contained in:
parent
a27f6f61cf
commit
fd1c9b1284
1 changed files with 4 additions and 3 deletions
|
|
@ -87,15 +87,16 @@
|
|||
function runBanner() {
|
||||
// Try to get dynamic content
|
||||
// Else keep static ones
|
||||
fetch("https://www.bunkerweb.io/api/bw-ui-news")
|
||||
fetch("https://bunkerweb.io/api/bw-ui-news")
|
||||
.then((res) => {
|
||||
return res.json();
|
||||
})
|
||||
.then((res) => {
|
||||
defaultContent = res.data;
|
||||
defaultContent = res.data[0].data;
|
||||
startBannerLoop();
|
||||
})
|
||||
.catch((e) => { startBannerLoop();
|
||||
.catch((e) => {
|
||||
startBannerLoop();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue