Skip to content

Commit

Permalink
Minor fixes in DetectRTC.js
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Nov 14, 2015
1 parent d7c3a61 commit bea1fe7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Last time updated at Wednesday, November 11th, 2015, 9:32:12 AM
// Last time updated at Saturday, November 14th, 2015, 4:14:34 PM

// Latest file can be found here: https://cdn.webrtc-experiment.com/DetectRTC.js

Expand Down Expand Up @@ -470,6 +470,9 @@
// --------- Detect if WebAudio API are supported
var webAudio = {};
['AudioContext', 'webkitAudioContext', 'mozAudioContext', 'msAudioContext'].forEach(function(item) {
if (webAudio.isSupported && webAudio.isCreateMediaStreamSourceSupported) {
return;
}
if (item in window) {
webAudio.isSupported = true;

Expand Down
Loading

0 comments on commit bea1fe7

Please sign in to comment.