From d064f5eba364cba03198ab92a7588e34a9869b69 Mon Sep 17 00:00:00 2001 From: megos Date: Wed, 19 Jul 2017 22:02:20 +0900 Subject: Fixed notification text replace line feed to space (#6970) --- webapp/actions/notification_actions.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp') 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) + '...'; } -- cgit v1.2.3-1-g7c22