diff --git a/backend/static/js/pages/poison.js b/backend/static/js/pages/poison.js index f44977c..d473bbd 100644 --- a/backend/static/js/pages/poison.js +++ b/backend/static/js/pages/poison.js @@ -133,10 +133,13 @@ window.Page_poison = (() => { maxZoom: 19, }).addTo(_map); - // Attribution-Elemente aus dem DOM entfernen (doppelt sicher) - setTimeout(() => { - document.querySelectorAll('.leaflet-control-attribution').forEach(el => el.remove()); - }, 300); + // Attribution komplett unterdrücken — per Style-Injection (cache-sicher) + if (!document.getElementById('leaflet-attribution-hide')) { + const s = document.createElement('style'); + s.id = 'leaflet-attribution-hide'; + s.textContent = '.leaflet-control-attribution { display: none !important; }'; + document.head.appendChild(s); + } } // ----------------------------------------------------------