audible_notifications: Convert module to TypeScript.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-10-10 15:44:18 -07:00
committed by Tim Abbott
parent 41c64ee8bb
commit 0006f4a90c
5 changed files with 11 additions and 8 deletions

View File

@@ -450,7 +450,7 @@ export function dispatch_normal_event(event) {
if (event.property === "notification_sound") {
audible_notifications.update_notification_sound_source(
$("#realm-default-notification-sound-audio"),
$("audio#realm-default-notification-sound-audio"),
realm_user_settings_defaults,
);
}
@@ -673,7 +673,7 @@ export function dispatch_normal_event(event) {
if (notification_name === "notification_sound") {
// Change the sound source with the new page `notification_sound`.
audible_notifications.update_notification_sound_source(
$("#user-notification-sound-audio"),
$("audio#user-notification-sound-audio"),
user_settings,
);
}