discourse/app/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
..
admin UX: Look and feel changes (#29245) 2024-10-29 12:25:17 +10:00
custom-proxy Build(deps-dev): Bump express from 4.21.0 to 4.21.1 (#29134) 2024-10-09 01:07:01 +02:00
deprecation-silencer DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
dialog-holder Build(deps-dev): Bump @types/jquery in the types group (#29379) 2024-10-23 23:29:32 +02:00
discourse DEV: use service worker for chat sound (#29388) 2024-10-29 13:15:53 +04:00
discourse-common DEV: Upgrade Uppy to v4 (#29397) 2024-10-28 14:01:44 +00:00
discourse-hbr DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
discourse-i18n DEV: Reformat package.json files (#28733) 2024-09-04 21:14:13 +02:00
discourse-markdown-it Build(deps): Bump ember-auto-import from 2.8.0 to 2.8.1 (#28982) 2024-09-30 14:06:20 +02:00
discourse-plugins Build(deps): Bump the babel group with 2 updates (#29423) 2024-10-27 23:06:49 +01:00
discourse-widget-hbs Build(deps-dev): Bump @ember/optional-features from 2.1.0 to 2.2.0 (#29427) 2024-10-27 23:20:31 +01:00
docs
ember-addons
ember-cli-progress-ci PERF: Improve production JS build in low-memory environments (#26849) 2024-05-02 11:43:59 +01:00
ember-production-deprecations DEV: Update ember-cli-deprecation-workflow from 2.2.0 to 3.0.1 (#28226) 2024-08-07 17:59:42 +02:00
float-kit Build(deps-dev): Bump @ember/optional-features from 2.1.0 to 2.2.0 (#29427) 2024-10-27 23:20:31 +01:00
locales FEATURE: Add Uyghur language (#27183) 2024-05-27 09:58:18 +02:00
pretty-text Build(deps-dev): Bump @ember/optional-features from 2.1.0 to 2.2.0 (#29427) 2024-10-27 23:20:31 +01:00
select-kit Build(deps-dev): Bump @ember/optional-features from 2.1.0 to 2.2.0 (#29427) 2024-10-27 23:20:31 +01:00
theme-transpiler Build(deps): Bump the babel group with 2 updates (#29423) 2024-10-27 23:06:49 +01:00
truth-helpers Build(deps): Bump ember-auto-import from 2.8.0 to 2.8.1 (#28982) 2024-09-30 14:06:20 +02:00
.npmrc
handlebars-shim.js
polyfills.js
service-worker.js.erb DEV: use service worker for chat sound (#29388) 2024-10-29 13:15:53 +04:00