mirror of https://github.com/xwiki-labs/cryptpad
return Boolean from our test for WebRTC support
This commit is contained in:
parent
275a3c80fc
commit
20959f84ae
|
@ -1112,11 +1112,11 @@ define([
|
|||
};
|
||||
|
||||
common.isWebRTCSupported = function () {
|
||||
return navigator.getUserMedia ||
|
||||
return Boolean(navigator.getUserMedia ||
|
||||
navigator.webkitGetUserMedia ||
|
||||
navigator.mozGetUserMedia ||
|
||||
navigator.msGetUserMedia ||
|
||||
window.RTCPeerConnection;
|
||||
window.RTCPeerConnection);
|
||||
};
|
||||
|
||||
common.ready = (function () {
|
||||
|
|
Loading…
Reference in New Issue