Skip to content

Commit

Permalink
fix: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Sep 20, 2024
1 parent 42275ac commit 5f52058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export class NativeAudioWeb extends WebPlugin implements NativeAudio {
await this.stop(options);
audio.loop = false;
audio.currentTime = time;
audio.addEventListener("ended", () => this.onEnded(assetId), { once: true });
audio.addEventListener("ended", () => this.onEnded(assetId), {
once: true,
});
return audio.play();
}

Expand Down

0 comments on commit 5f52058

Please sign in to comment.