mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
audible_notifications: Convert module to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
41c64ee8bb
commit
0006f4a90c
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user