Skip to content

K.canPlayType can be undefined fixed issue#15

Open
TessavWalstijn wants to merge 1 commit into
Metrological:masterfrom
TessavWalstijn:master
Open

K.canPlayType can be undefined fixed issue#15
TessavWalstijn wants to merge 1 commit into
Metrological:masterfrom
TessavWalstijn:master

Conversation

@TessavWalstijn
Copy link
Copy Markdown

K.canPlayType can be undefined witch can lead to an crash on old browsers.
While it was: b=K.canPlayType(a)||!1 so when K.canPlayType(a) does not return a value !1 would be used.
I updated it to b=K.canPlayType===t?!1:K.canPlayType(a)||!1 so when K.canPlayType is undefined (known as t) the value !1 would be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant