fix(miniflux) correct category filter

This commit is contained in:
SansGuidon 2025-04-22 21:15:02 +00:00
parent d0d2bc01a9
commit 023baf9a0a

View File

@ -2,8 +2,8 @@
'use strict'; 'use strict';
document.querySelectorAll('article.item').forEach(function(e) { document.querySelectorAll('article.item').forEach(function(e) {
var total = e.querySelector('span[class="category-item-total"]').innerText == '(0)'; const totalSpan = e.querySelector('span.category-item-total');
if (total) { if (totalSpan && totalSpan.innerText.trim() === '(0)') {
e.remove(); e.remove();
} }
}); });