discourse/plugins/chat/assets/javascripts
David Battersby 7bcd46b87d
DEV: use service worker for chat sound (#29388)
This change makes use of service workers to determine if we should play chat sounds in the current browser tab. Since users can have multiple tabs open, we currently attempt to play sound across all active tabs.

With this change we iterate over all clients and check if client.focused is true (ie. the current tab/window we have open), if so we allow playing the audio in the current tab and for all other hidden tabs/windows we return false.

---------

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>
2024-10-29 13:15:53 +04:00
..
discourse DEV: use service worker for chat sound (#29388) 2024-10-29 13:15:53 +04:00
lib/discourse-markdown FEATURE: supports mark tag in chat messages (#28949) 2024-09-17 20:52:34 +02:00
select-kit/addons/components DEV: Convert select-kit subclasses to native class syntax (#28491) 2024-08-23 13:19:26 +01:00