Skip to content

Commit

Permalink
extra info around flash detection
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Feb 10, 2010
1 parent bf04afa commit e6ffea3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ window.Modernizr = (function(window,doc,undefined){


// technique courtesy of Jonathan Neal

// in my testing if plugins are disabled this plugins entry isn't availble, so no need to check
// navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin
tests[flash] = function(){
try {
return !!navigator.plugins['Shockwave Flash'] || !!(new ActiveXObject('ShockwaveFlash.ShockwaveFlash'));
Expand Down

0 comments on commit e6ffea3

Please sign in to comment.