Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
[#448] Early return if no websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
k88hudson committed Oct 22, 2014
1 parent 063289f commit 7a25246
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/client-ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* This module gets used by browserify, see package.json
*/

if (!global.WebSocket) return;

global.WebSocket.prototype.on = global.WebSocket.prototype.on || function(event, listener) {
this.addEventListener(event, listener);
};
Expand Down

0 comments on commit 7a25246

Please sign in to comment.