From: Alexander Ebert Date: Fri, 9 Apr 2021 14:29:44 +0000 (+0200) Subject: Work-around for the HTML entity in notifications for reactions X-Git-Tag: 5.3.6~24 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf940d6114363e7a7176574dd716b215cd4f8f27;p=GitHub%2FWoltLab%2FWCF.git Work-around for the HTML entity in notifications for reactions --- 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 () {