Warn when WebRTC isn't detected in the webext

Trac 31067
This commit is contained in:
Arlo Breault 2019-07-03 15:35:01 +02:00
parent 4494dbd3ca
commit 095f4a0510
5 changed files with 23 additions and 7 deletions

View file

@ -31,9 +31,5 @@ else
SessionDescription = window.RTCSessionDescription ||
window.mozRTCSessionDescription
if typeof PeerConnection isnt 'function'
console.log 'webrtc feature not detected. shutting down'
return
WebSocket = window.WebSocket
XMLHttpRequest = window.XMLHttpRequest