mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 10:56:25 +00:00
fix webrtc support detection in browser
This commit is contained in:
parent
44319cfa11
commit
ee3ea92c47
@ -17,7 +17,7 @@ try {
|
||||
wrtc = null // optional dependency failed to install
|
||||
}
|
||||
|
||||
var WEBRTC_SUPPORT = !!wrtc
|
||||
var WEBRTC_SUPPORT = !!wrtc || typeof window !== 'undefined'
|
||||
|
||||
var common = require('./common')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user