From 7a25246f2000fe5d2f0b2421da9e3d756c056065 Mon Sep 17 00:00:00 2001 From: Kate Hudson Date: Wed, 22 Oct 2014 15:07:33 -0400 Subject: [PATCH] [#448] Early return if no websockets --- client/src/client-ws.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/client-ws.js b/client/src/client-ws.js index e2ea738..4d82c6e 100644 --- a/client/src/client-ws.js +++ b/client/src/client-ws.js @@ -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); };