mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Truncate message in desktop notification
This commit is contained in:
parent
3e75057fe9
commit
dae0488b57
@ -820,7 +820,7 @@ Send out notifications for the given `message`. The number of unread messages wi
|
|||||||
newMessageCount: ++newMessageCount
|
newMessageCount: ++newMessageCount
|
||||||
|
|
||||||
title = WCF.Language.get 'chat.global.notify.title'
|
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'
|
if window.Notification?.permission is 'granted'
|
||||||
do ->
|
do ->
|
||||||
|
Loading…
Reference in New Issue
Block a user