forked from Modernizr/Modernizr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try/catch'ing our audio/video tests, as IE9 likes to throw exceptions…
… in some rare cases. details: it seems that if you don't have the "Desktop Experience" installed, using elem.canPlayType() will throw an exception. Awesome! So we try/catch it. It's okay, they're cheap. I'm doing a little bit of magic with an assignment inside my if() conditional. I hope nobody minds, too much. Fixes Modernizr#224
- Loading branch information
Showing
1 changed file
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters