modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
17 lines (16 loc) • 401 B
JavaScript
/*!
{
"name": "RTC Peer Connection",
"property": "peerconnection",
"caniuse": "rtcpeerconnection",
"tags": ["webrtc"],
"authors": ["Ankur Oberoi"],
"notes": [{
"name": "W3C Spec",
"href": "https://www.w3.org/TR/webrtc/"
}]
}
!*/
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
Modernizr.addTest('peerconnection', !!prefixed('RTCPeerConnection', window));
});