fix proxy createAnswer error handling for updated WebRTC syntax

This commit is contained in:
Serene Han 2016-05-02 11:10:45 -07:00
parent d567e2312f
commit 6a8c88fe64
2 changed files with 6 additions and 3 deletions

View file

@ -9,12 +9,13 @@ else
prop = Modernizr.prefixed 'RTCPeerConnection', window, false
if not prop
console.log 'webrtc feature not detected. shutting down'
return;
return
PeerConnection = window[prop]
### FIXME: push these upstream ###
IceCandidate = window.RTCIceCandidate || window.mozRTCIceCandidate
SessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription
SessionDescription = window.RTCSessionDescription ||
window.mozRTCSessionDescription
location = if window.location then window.location.search.substr(1) else ""