Commit ce3bdbcc authored by Joel Martin's avatar Joel Martin

Catch Mozilla prefixing of WebSocket.

Pull 475cfae from websockify.

In Firefox 7 Mozilla has added Websockets support but prefixed the
constructor with "Moz".
parent ad3f7624
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
if (window.WebSocket) { if (window.WebSocket) {
Websock_native = true; Websock_native = true;
} else if (window.MozWebSocket) {
Websock_native = true;
window.WebSocket = window.MozWebSocket;
} else { } else {
/* no builtin WebSocket so load web_socket.js */ /* no builtin WebSocket so load web_socket.js */
Websock_native = false; Websock_native = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment