diff options
author | Carl Byström <cgbystrom@gmail.com> | 2011-07-22 14:15:13 +0200 |
---|---|---|
committer | Carl Byström <cgbystrom@gmail.com> | 2011-07-22 14:15:13 +0200 |
commit | 693e1556132709934868190a49fbf646ce56c8e2 (patch) | |
tree | cc22162a929efdacf689debb38e5f53b5f6689ad | |
parent | 49c2b030f9bd2933bfbae7d3ebeac915303e703d (diff) | |
download | web-socket-js-693e1556132709934868190a49fbf646ce56c8e2.tar.gz |
Setting for forcing use of Flash over native Web Socket implementation
-rw-r--r-- | web_socket.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_socket.js b/web_socket.js index 3cabbd4..3a50f90 100644 --- a/web_socket.js +++ b/web_socket.js @@ -4,8 +4,8 @@ // Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol (function() { - - if (window.WebSocket) return; + + if (window.WebSocket && !window.WEB_SOCKET_FORCE_FLASH) return; var console = window.console; if (!console || !console.log || !console.error) { |