hls.js
hls.js copied to clipboard
Getting Started Documentation Has Bad Code
In the Getting Started documentation, it initializes a `video` variable inside the `if` block then references that variable in the `else if` block. The `video` variable wouldn't be available in the `else if` block.
Move the `video` variable initialization to outside the `if` block so it can be used in both blocks.