Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplifying Flash availability check.

  • Loading branch information...
commit ad3626b2c488b5ec9d52933550bc4d56881741b9 1 parent 989f55b
@gimite gimite authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.