From b466932e37340e10fedc9b5b33a28db7ad25e4e8 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 20 Dec 2024 19:12:09 +0000 Subject: improved imagesLoaded() and formatting --- view/tpl/notifications_widget.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 16362691f..3347378b5 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -466,7 +466,7 @@ updateElement.textContent = count >= 100 ? '99+' : count; } } else { - updateElement.textContent = '0'; + if (updateElement) updateElement.textContent = '0'; if (subElement) subElement.classList.remove('show'); if (buttonElement) { buttonElement.style.display = 'none'; // Fade-out effect replaced by display none -- cgit v1.2.3