Last active
September 14, 2015 12:45
Function that checks MIME type support in browser. (@see demo http://jsfiddle.net/ErBlack/e2Ldgz7a/embedded/result/)
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
var mimeCheck = function (type) { | |
return Array.prototype.some.call(navigator.plugins, function (plugin) { | |
return Array.prototype.some.call(plugin, function (mime) { | |
return mime.type == type; | |
}); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment