docs: fix await keyword for attach method (#5841)

Looks like this was just introduced in #5752
This commit is contained in:
Albin Larsson
2023-10-31 16:15:17 +00:00
committed by GitHub
parent 155befb0a0
commit 2e7766893f
+1 -1
View File
@@ -53,7 +53,7 @@ async function initPlayer() {
// Create a Player instance.
const video = document.getElementById('video');
const player = new shaka.Player();
async player.attach(video);
await player.attach(video);
// Attach player to the window to make it easy to access in the JS console.
window.player = player;