diff options
author | Michael Hamann <michael@content-space.de> | 2013-08-01 21:10:22 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2013-08-01 21:10:22 +0200 |
commit | 366f1b4213db30071ca5e1b73c31f6e99337e1a7 (patch) | |
tree | 08ffb0927c5b8ff104f67326f1a9bc40799f3b8c /lib/scripts/helpers.js | |
parent | b9ca398d17863ad9a679d220dd742b0480fa80b6 (diff) | |
parent | 5537fd88dc60d76d6a85202f715aa1ef585281a9 (diff) | |
download | rpg-366f1b4213db30071ca5e1b73c31f6e99337e1a7.tar.gz rpg-366f1b4213db30071ca5e1b73c31f6e99337e1a7.tar.bz2 |
Merge branch 'master' into extension_manager
Diffstat (limited to 'lib/scripts/helpers.js')
-rw-r--r-- | lib/scripts/helpers.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/scripts/helpers.js b/lib/scripts/helpers.js index d6f36967d..632c4bff2 100644 --- a/lib/scripts/helpers.js +++ b/lib/scripts/helpers.js @@ -3,25 +3,6 @@ */ /** - * Very simplistic Flash plugin check, probably works for Flash 8 and higher only - * - * @author Andreas Gohr <andi@splitbrain.org> - */ -function hasFlash(version){ - var ver = 0; - try{ - if(navigator.plugins != null && navigator.plugins.length > 0){ - ver = navigator.plugins["Shockwave Flash"].description.split(' ')[2].split('.')[0]; - }else{ - ver = (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) - .GetVariable("$version").split(' ')[1].split(',')[0]; - } - }catch(e){ } - - return ver >= version; -} - -/** * A PHP-style substr_replace * * Supports negative start and length and omitting length, but not |