Work-around for the HTML entity in notifications for reactions
authorAlexander Ebert <ebert@woltlab.com>
Fri, 9 Apr 2021 14:29:44 +0000 (16:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 9 Apr 2021 14:29:44 +0000 (16:29 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Notification/Handler.js

index 2dfe96eade836d7a6d7759b7c9f091c8bc2d182b..d2fe020820a3015d2a032c53f2b3e44895c43d4e 100644 (file)
@@ -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(/&#x202F;/g, "\u202F"),
                                        icon: _icon
                                });
                                notification.onclick = function () {