diff options
author | Marian Oancea <contact@siteshop.ro> | 2014-11-07 04:51:37 +0800 |
---|---|---|
committer | Marian Oancea <contact@siteshop.ro> | 2014-11-07 04:51:37 +0800 |
commit | 3270b432bcb007944e3b6e17329b062cb6b7da78 (patch) | |
tree | 197238043b4e4e7e5b20c2d985961e863fe52a92 /lib/websocket.js | |
parent | bd14b4d23e5eaaf5359b73a2744727df5624ab97 (diff) | |
download | go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.gz go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.bz2 go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.lz go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.xz go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.zst go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.zip |
Refactoring
Removed browser fixes
Updated gulp to bypass native browser objects
Added source map for dist
Diffstat (limited to 'lib/websocket.js')
-rw-r--r-- | lib/websocket.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/websocket.js b/lib/websocket.js index 8ccb3d40b..93d58aeba 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -21,8 +21,9 @@ * @date 2014 */ -var WebSocket = require('ws'); // jshint ignore:line - +if(process.env.NODE_ENV !== "build") { + var WebSocket = require('ws'); // jshint ignore:line +} var WebSocketProvider = function(host) { // onmessage handlers |