mirror of
https://github.com/TheErrorExe/blockattack
synced 2025-09-05 21:11:00 +02:00
Update ankündigungen-debug.html
This commit is contained in:
parent
4117912ddd
commit
10f810be8d
@ -97,6 +97,8 @@
|
|||||||
|
|
||||||
// Ankündigungen filtern basierend auf !new-an und !stop
|
// Ankündigungen filtern basierend auf !new-an und !stop
|
||||||
function filterContent(content) {
|
function filterContent(content) {
|
||||||
|
if (!content) return ''; // Wenn content undefined oder null ist, leere Zeichenkette zurückgeben
|
||||||
|
|
||||||
const newAnIndex = content.indexOf('!new-an');
|
const newAnIndex = content.indexOf('!new-an');
|
||||||
const stopIndex = content.indexOf('!stop');
|
const stopIndex = content.indexOf('!stop');
|
||||||
|
|
||||||
@ -111,6 +113,7 @@
|
|||||||
fetch(apiUrl)
|
fetch(apiUrl)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
console.log(data); // Überprüfe, ob alle Ankündigungen einen 'Content' haben
|
||||||
const container = document.getElementById('announcements');
|
const container = document.getElementById('announcements');
|
||||||
container.innerHTML = ''; // Alte Inhalte entfernen
|
container.innerHTML = ''; // Alte Inhalte entfernen
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user