Actualización

This commit is contained in:
Xes
2025-04-10 11:37:29 +02:00
parent 4bfeadb360
commit 8969cc929d
39112 changed files with 975884 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// binaryType is truthy if there is support.. returns "blob" in new-ish chrome.
// plus.google.com/115535723976198353696/posts/ERN6zYozENV
// github.com/Modernizr/Modernizr/issues/370
Modernizr.addTest('websocketsbinary', function() {
var protocol = 'https:'==location.protocol?'wss':'ws',
protoBin;
if('WebSocket' in window) {
if( protoBin = 'binaryType' in WebSocket.prototype ) {
return protoBin;
}
try {
return !!(new WebSocket(protocol+'://.').binaryType);
} catch (e){}
}
return false;
});