Skip to content

Commit

Permalink
We need bool, not a websocket object.
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Sep 5, 2011
1 parent c898044 commit a8b80ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trans-websocket.js
Expand Up @@ -33,5 +33,5 @@ WebSocketTransport.prototype.doCleanup = function() {
};

WebSocketTransport.enabled = function() {
return (window.WebSocket || window.MozWebSocket);
return !!(window.WebSocket || window.MozWebSocket);
};

0 comments on commit a8b80ce

Please sign in to comment.