Skip to content

Commit ee3ea92

Browse files
committed
fix webrtc support detection in browser
1 parent 44319cf commit ee3ea92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/websocket-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ try {
1717
wrtc = null // optional dependency failed to install
1818
}
1919

20-
var WEBRTC_SUPPORT = !!wrtc
20+
var WEBRTC_SUPPORT = !!wrtc || typeof window !== 'undefined'
2121

2222
var common = require('./common')
2323

0 commit comments

Comments
 (0)