mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 04:12:02 +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
|
* any interactive trigger like a button. See
|
||||||
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play for more details.
|
* 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 {
|
try {
|
||||||
await elem.play();
|
await elem.play();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user