Catch Mozilla prefixing of WebSocket.

In Firefox 7 Mozilla has added Websockets support but prefixed the
constructor with "Moz".
This commit is contained in:
Joel Martin 2011-08-02 07:59:37 -05:00
parent f1c8223a51
commit 475cfae4e5
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@
if (window.WebSocket) {
Websock_native = true;
} else if (window.MozWebSocket) {
Websock_native = true;
window.WebSocket = window.MozWebSocket;
} else {
/* no builtin WebSocket so load web_socket.js */
Websock_native = false;