123
This commit is contained in:
@ -699,11 +699,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (text) {
|
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');
|
announcementEl.classList.remove('hidden');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
announcementEl.classList.add('hidden');
|
announcementEl.classList.add('hidden');
|
||||||
}, 2000); // Сократил с 3500 до 2000 мс
|
}, 2000); // Сократил с 3500 до 2000 мс
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user