Fix notification elements checker
This commit is contained in:
parent
037aa081b3
commit
ffca3725bf
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user