bugfix: solid-fix-badge to solid-badge

This commit is contained in:
Jean-Baptiste Pasquier 2020-08-05 13:43:05 +00:00
parent b44c950c1a
commit e897c78ba9

View File

@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
window.addEventListener('read', (event) => {
if (event.detail && event.detail.resource && event.detail.resource['@id']) {
const badge = document.querySelector(`solid-fix-badge[data-src="${event.detail.resource['@id']}"]`);
const badge = document.querySelector(`solid-badge[data-src="${event.detail.resource['@id']}"]`);
if (badge) badge.parentElement.parentElement.classList.remove('unread');
}
});