Created
January 21, 2015 00:40
-
-
Save banjeremy/bd85944c6481e3bb525b to your computer and use it in GitHub Desktop.
Detect if MediaSource API is available
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
(function(){ | |
if (typeof MediaSource === typeof undefined){ | |
alert('You must be on FireFox or some old IE bullshit'); | |
} else { | |
alert('You are running a MediaSource API capable browser'); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment