diff --git a/docs/tutorials/errors.md b/docs/tutorials/errors.md index cc0978e117..7a7b774782 100644 --- a/docs/tutorials/errors.md +++ b/docs/tutorials/errors.md @@ -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