From ee3ea92c47888101316dca0f95f004b7ee693589 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 23 Apr 2015 23:27:12 -0700 Subject: [PATCH] fix webrtc support detection in browser --- lib/websocket-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/websocket-tracker.js b/lib/websocket-tracker.js index f84b81b..874490f 100644 --- a/lib/websocket-tracker.js +++ b/lib/websocket-tracker.js @@ -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')