Commit c0dc62a2 authored by Anssi Piirainen's avatar Anssi Piirainen

Merge pull request #173 from flowplayer/api-flash-detection

api: handle Flash detection in Safari 6 (#167)
parents f88c8445 97422ed7
......@@ -88,10 +88,14 @@
conf: GLOBAL_OPTS,
getVersion: function() {
var fo, ver;
var fo, ver, plugin;
try {
ver = navigator.plugins["Shockwave Flash"].description.slice(16);
plugin = navigator.plugins["Shockwave Flash"];
// Safari 6 reports version even when disabled
// but [0, 0] should be returned (#167)
if (plugin[0].enabledPlugin != null)
ver = plugin.description.slice(16);
} catch(e) {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment