Skip to content

Commit

Permalink
docs: update error documentation (#6648)
Browse files Browse the repository at this point in the history
Correctly pass the event.detail to the error handler instead of the event
  • Loading branch information
martinstark committed May 22, 2024
1 parent 26c3f64 commit 21df572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const player = new shaka.Player();
await player.attach(video);

// handle errors that occur after load
player.addEventListener('error', handleError);
player.addEventListener('error', (event) = handleError(event.detail));

// there are two options for catching errors that occur during load

Expand Down

0 comments on commit 21df572

Please sign in to comment.