bugfix: solid-fix-badge to solid-badge
This commit is contained in:
parent
b44c950c1a
commit
e897c78ba9
@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
|
|||||||
|
|
||||||
window.addEventListener('read', (event) => {
|
window.addEventListener('read', (event) => {
|
||||||
if (event.detail && event.detail.resource && event.detail.resource['@id']) {
|
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');
|
if (badge) badge.parentElement.parentElement.classList.remove('unread');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user