We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e62787 + d873a91 commit 114661aCopy full SHA for 114661a
lib/browser.js
@@ -1,4 +1,9 @@
1
-var _global = (function() { return this; })();
+var _global = (function () {
2
+ if (!this && typeof global !== 'undefined') {
3
+ return global;
4
+ }
5
+ return this;
6
+})();
7
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
8
var websocket_version = require('./version');
9
0 commit comments