This commit is contained in:
2026-01-28 00:37:35 +03:00
parent c009a78f61
commit 4b01c2d4de

View File

@ -699,11 +699,21 @@
}
if (text) {
announcementEl.textContent = text;
announcementEl.innerHTML = text;
// Инициализируем иконки Lucide после установки HTML
if (typeof lucide !== 'undefined') {
setTimeout(() => {
try {
lucide.createIcons();
} catch (e) {
console.warn('Error updating Lucide icons in attack announcement:', e);
}
}, 10);
}
announcementEl.classList.remove('hidden');
setTimeout(() => {
announcementEl.classList.add('hidden');
}, 2000); // Сократил с 3500 до 2000 мс
setTimeout(() => {
announcementEl.classList.add('hidden');
}, 2000); // Сократил с 3500 до 2000 мс
}
}