hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

Getting Started Documentation Has Bad Code

Open pwgraham91 opened this issue 8 years ago • 0 comments

cursor_and_home___hls_js 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.

pwgraham91 avatar Apr 18 '18 18:04 pwgraham91