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.notificationBadge = document.querySelector('.notification-badge');
|
||||||
this.notificationBoard = document.getElementById('notification-board');
|
this.notificationBoard = document.getElementById('notification-board');
|
||||||
this.notificationBell = document.getElementById('notification-bell');
|
this.notificationBell = document.getElementById('notification-bell');
|
||||||
@ -110,6 +111,8 @@ class ChatElement extends HTMLElement {
|
|||||||
if (!this.notificationBadge || !this.notificationBoard || !this.notificationBell) {
|
if (!this.notificationBadge || !this.notificationBoard || !this.notificationBell) {
|
||||||
console.error('Notification elements not found');
|
console.error('Notification elements not found');
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Initialiser les événements de notification
|
// Initialiser les événements de notification
|
||||||
document.addEventListener('click', (event: Event): void => {
|
document.addEventListener('click', (event: Event): void => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user