banner dynamic work on doc

This commit is contained in:
Jordan Blasenhauer 2024-03-06 16:41:04 +01:00
parent a27f6f61cf
commit fd1c9b1284

View file

@ -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();
});
}