Skip to content

Commit

Permalink
Added code to close websocket after it is used to determine result fo…
Browse files Browse the repository at this point in the history
…r isWebSocketsSupported
  • Loading branch information
brianpursley committed Nov 16, 2015
1 parent bea1fe7 commit 016784e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DetectRTC.js
@@ -1,4 +1,4 @@
// Last time updated at Saturday, November 14th, 2015, 4:14:34 PM
// Last time updated at Monday, November 16th, 2015, 9:04:34 PM

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

Expand Down Expand Up @@ -519,6 +519,7 @@
if (DetectRTC.loadCallback) {
DetectRTC.loadCallback();
}
websocket.close();
};
websocket.onerror = function() {
DetectRTC.isWebSocketsBlocked = true;
Expand Down

0 comments on commit 016784e

Please sign in to comment.