From dae0488b577cf9e12fe23febffd5de49f3b97485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 30 Jul 2014 21:43:00 +0200 Subject: [PATCH] Truncate message in desktop notification --- file/js/be.bastelstu.Chat.litcoffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 5da3c4a..7410e8a 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -820,7 +820,7 @@ Send out notifications for the given `message`. The number of unread messages wi newMessageCount: ++newMessageCount title = WCF.Language.get 'chat.global.notify.title' - content = "#{message.username}#{message.separator} #{message.message}" + content = "#{message.username}#{message.separator} #{if message.message.length > 50 then message.message[0..50] + '\u2026' else message.message}" if window.Notification?.permission is 'granted' do ->