From 2e7766893fa553e2ee870521be97b2cd745d284c Mon Sep 17 00:00:00 2001 From: Albin Larsson Date: Tue, 31 Oct 2023 16:15:17 +0000 Subject: [PATCH] docs: fix await keyword for attach method (#5841) Looks like this was just introduced in #5752 --- docs/tutorials/basic-usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/basic-usage.md b/docs/tutorials/basic-usage.md index 492492725..202a88656 100644 --- a/docs/tutorials/basic-usage.md +++ b/docs/tutorials/basic-usage.md @@ -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;