Update ankündigungen-debug.html

This commit is contained in:
TheErrorExe 2025-01-08 20:12:11 +01:00 committed by GitHub
parent 4117912ddd
commit 10f810be8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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