aboutsummaryrefslogtreecommitdiffstats
path: root/lib/websocket.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-12-22 08:13:49 +0800
committerGav Wood <i@gavwood.com>2014-12-22 08:13:49 +0800
commit123098ce79562be0d4ce87e15bcebe6a970f1ff6 (patch)
treefba808e0bf433cc209c7554f5aed744813a71574 /lib/websocket.js
parente9db2d1b1877bdf49cb76de46849a1426ded288c (diff)
downloadgo-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.gz
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.bz2
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.lz
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.xz
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.tar.zst
go-tangerine-123098ce79562be0d4ce87e15bcebe6a970f1ff6.zip
Lots of fixes.
Diffstat (limited to 'lib/websocket.js')
-rw-r--r--lib/websocket.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/websocket.js b/lib/websocket.js
index 0c7563062..24a072531 100644
--- a/lib/websocket.js
+++ b/lib/websocket.js
@@ -22,9 +22,11 @@
* @date 2014
*/
-if (process.env.NODE_ENV !== "build") {
+// TODO: work out which of the following two lines it is supposed to be...
+//if (process.env.NODE_ENV !== 'build') {
+if ("build" !== "build") {/*
var WebSocket = require('ws'); // jshint ignore:line
-}
+*/}
var WebSocketProvider = function(host) {
// onmessage handlers