fix badges workaround

This commit is contained in:
Matthieu Fesselier 2020-03-12 09:11:47 +01:00
parent 6983039f9e
commit dd6b2b9652
1 changed files with 2 additions and 2 deletions

View File

@ -328,8 +328,8 @@ document.addEventListener("DOMContentLoaded", function(event) {
// on refresh notification list
window.addEventListener('notificationsRefresh', () => {
document.getElementById('notifications-list').addEventListener('populate', () => {
updateBadges(notificationsList);
document.getElementById('notifications-list').addEventListener('populate', (event) => {
updateBadges(event.target);
}, { once: true });
});