Skip to content

Flash detection on IE9 #36

@luruke

Description

@luruke

Hey, i've had a problem detecting flash under IE9 under Win7.
Even adobe flash was installed Modernizr.flash was false.

I've solved with this little snippet I found on stackoverflow (http://stackoverflow.com/a/3336320/2367784):
try { Modernizr.flash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash')); } catch (exception) { Modernizr.flash = ('undefined' != typeof navigator.mimeTypes['application/x-shockwave-flash']); }

The only difference should be that Detectizr test ShockwaveFlash.ShockwaveFlash.1 instead of ShockwaveFlash.ShockwaveFlash, what this .1 is? It is a bug?

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions