ui_util: Fix elem type in play_audio to match how it's called.

This commit is contained in:
evykassirer
2024-10-01 22:20:32 -07:00
committed by Tim Abbott
parent faeee04472
commit b5352df782

View File

@@ -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) {