fix(playback): await all async methods in interna API

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2306>
This commit is contained in:
wvffle 2022-12-27 13:18:56 +00:00 committed by petitminion
commit af6b5c3843
3 changed files with 10 additions and 11 deletions

View file

@ -96,11 +96,11 @@ export class HTMLSound implements Sound {
}
async play () {
this.#audio.play()
return this.#audio.play()
}
async pause () {
this.#audio.pause()
return this.#audio.pause()
}
async seekTo (seconds: number) {