We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b6e88 commit cff7cc3Copy full SHA for cff7cc3
angular-websocket.js
@@ -346,7 +346,7 @@
346
}
347
348
// CommonJS
349
- if (typeof exports === 'object' && require) {
+ if (typeof exports === 'object' && typeof require === 'function') {
350
try {
351
ws = require('ws');
352
Socket = (ws.Client || ws.client || ws);
dist/angular-websocket.js
0 commit comments