Fix notification elements checker

This commit is contained in:
NicolasCantu 2025-01-21 14:18:49 +01:00
parent 037aa081b3
commit ffca3725bf

View File

@ -103,6 +103,7 @@ class ChatElement extends HTMLElement {
}
};
document.addEventListener('DOMContentLoaded', () => {
this.notificationBadge = document.querySelector('.notification-badge');
this.notificationBoard = document.getElementById('notification-board');
this.notificationBell = document.getElementById('notification-bell');
@ -110,6 +111,8 @@ class ChatElement extends HTMLElement {
if (!this.notificationBadge || !this.notificationBoard || !this.notificationBell) {
console.error('Notification elements not found');
}
});
// Initialiser les événements de notification
document.addEventListener('click', (event: Event): void => {