From cf940d6114363e7a7176574dd716b215cd4f8f27 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 9 Apr 2021 16:29:44 +0200 Subject: [PATCH] Work-around for the HTML entity in notifications for reactions --- .../install/files/js/WoltLabSuite/Core/Notification/Handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js index 2dfe96eade..d2fe020820 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js @@ -225,7 +225,7 @@ define(['Ajax', 'Core', 'EventHandler', 'StringUtil'], function(Ajax, Core, Even if (typeof pollData.notification === 'object' && typeof pollData.notification.message === 'string') { //noinspection JSUnresolvedVariable var notification = new window.Notification(pollData.notification.title, { - body: StringUtil.unescapeHTML(pollData.notification.message), + body: StringUtil.unescapeHTML(pollData.notification.message).replace(/ /g, "\u202F"), icon: _icon }); notification.onclick = function () { -- 2.20.1