discourse/plugins
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
..
automation DEV: Remove extraneous spec code (#29386) 2024-10-24 14:15:32 +02:00
chat DEV: use service worker for chat sound (#29388) 2024-10-29 13:15:53 +04:00
checklist DEV: remap all core icons for fontawesome 6 upgrade (#28715) 2024-09-13 16:50:52 +01:00
discourse-details FIX: allows to use open attribute with details (#29116) 2024-10-08 11:13:44 +09:00
discourse-lazy-videos Update translations (#28577) 2024-08-29 15:37:52 -04:00
discourse-local-dates DEV: Convert more test assertions to qunit-dom (#29214) 2024-10-15 17:11:20 +02:00
discourse-narrative-bot Update translations (#29212) 2024-10-16 17:52:01 +09:00
discourse-presence Revert "DEV: Refactor composer-/topic-presence-display (#29262)" (#29368) 2024-10-23 16:26:08 +02:00
footnote UX: fix footnote causing horizontal scroll on narrow screens (#29328) 2024-10-22 05:09:34 +02:00
poll UX: Give ranked choice polls distinctive bullets in preview (#29439) 2024-10-28 11:10:37 -04:00
spoiler-alert DEV: Convert more test assertions to qunit-dom (#29214) 2024-10-15 17:11:20 +02:00
styleguide Update translations 2024-10-02 08:55:44 +02:00