From c0f9c54d8caa87610231ffe8fafe8eb60923dc57 Mon Sep 17 00:00:00 2001 From: zuzanna-maria Date: Wed, 4 Dec 2024 21:31:54 +0100 Subject: [PATCH] DOM manipulation --- www/notifications/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/notifications/inner.js b/www/notifications/inner.js index d927f7de9..ca93f5d17 100644 --- a/www/notifications/inner.js +++ b/www/notifications/inner.js @@ -86,6 +86,8 @@ define([ var addNotification = function (data, el) { // if the type of notification correspond if (filterTypes.indexOf(data.content.msg.type) !== -1) { + var icon = $(".cp-reminder"); + $(icon).wrap('').wrap('') notifsData.push(data); $(notifsList).prepend(el); } @@ -145,7 +147,6 @@ define([ common.mailbox.subscribe(["notifications", "reminders"], { onMessage: function (data, el) { - el.innerHTML = el.innerHTML.replace(''); addNotification(data, el); }, onViewed: function (data) {