mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
docs: fix await keyword for attach method (#5841)
Looks like this was just introduced in #5752
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user