summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/notification_actions.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/notification_actions.jsx b/webapp/actions/notification_actions.jsx
index c07dc0d56..33709458a 100644
--- a/webapp/actions/notification_actions.jsx
+++ b/webapp/actions/notification_actions.jsx
@@ -87,7 +87,7 @@ export function sendDesktopNotification(post, msgProps) {
image |= attachment.image_url.length > 0;
});
- notifyText.replace(/\n+/g, ' ');
+ notifyText = notifyText.replace(/\n+/g, ' ');
if (notifyText.length > 50) {
notifyText = notifyText.substring(0, 49) + '...';
}