Skip to content
Browse files

Simplifying Flash availability check.

  • Loading branch information...
1 parent 989f55b commit ad3626b2c488b5ec9d52933550bc4d56881741b9 @gimite gimite committed Aug 3, 2010
Showing with 1 addition and 13 deletions.
  1. +1 −13 web_socket.js
View
14 web_socket.js
@@ -10,19 +10,7 @@
var console = window.console;
if (!console) console = {log: function(){ }, error: function(){ }};
- function hasFlash() {
- if ('navigator' in window && 'plugins' in navigator && navigator.plugins['Shockwave Flash']) {
- return !!navigator.plugins['Shockwave Flash'].description;
- }
- if ('ActiveXObject' in window) {
- try {
- return !!new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version');
- } catch (e) {}
- }
- return false;
- }
-
- if (!hasFlash()) {
+ if (!swfobject.hasFlashPlayerVersion("9.0.0")) {
console.error("Flash Player is not installed.");
return;
}

0 comments on commit ad3626b

Please sign in to comment.
Something went wrong with that request. Please try again.