return Boolean from our test for WebRTC support

This commit is contained in:
ansuz 2019-01-10 18:21:39 +01:00
parent 275a3c80fc
commit 20959f84ae
1 changed files with 2 additions and 2 deletions

View File

@ -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 () {