mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
ui_util: Fix elem type in play_audio to match how it's called.
This commit is contained in:
@@ -169,7 +169,7 @@ export function parse_html(html: string): DocumentFragment {
|
||||
* any interactive trigger like a button. See
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play for more details.
|
||||
*/
|
||||
export async function play_audio(elem: HTMLVideoElement): Promise<void> {
|
||||
export async function play_audio(elem: HTMLAudioElement): Promise<void> {
|
||||
try {
|
||||
await elem.play();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user