Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit de7333f

Browse files
committed
Merge pull request #1 from rhwood/master
Support Firefox 10 on some Linux versions.
2 parents baeb628 + dc9110d commit de7333f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery.websocket.js

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
(function($){
1212
$.extend({
1313
websocket: function(url, s) {
14+
if (typeof(WebSocket) == "undefined") {
15+
WebSocket = (MozWebSocket) ? MozWebSocket : null;
16+
}
1417
var ws = WebSocket ? new WebSocket( url ) : {
1518
send: function(m){ return false },
1619
close: function(){}

0 commit comments

Comments
 (0)