mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
29 lines
646 B
JavaScript
29 lines
646 B
JavaScript
/*!
|
|
{
|
|
"name": "Blob constructor",
|
|
"property": "blobconstructor",
|
|
"aliases": ["blob-constructor"],
|
|
"builderAliases": ["blob_constructor"],
|
|
"caniuse": "blobbuilder",
|
|
"notes": [{
|
|
"name": "W3C Spec",
|
|
"href": "https://w3c.github.io/FileAPI/#constructorBlob"
|
|
}],
|
|
"polyfills": ["blobjs"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for the Blob constructor, for creating file-like objects of immutable, raw data.
|
|
*/
|
|
define(['Modernizr'], function(Modernizr) {
|
|
Modernizr.addTest('blobconstructor', function() {
|
|
try {
|
|
return !!new Blob();
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
}, {
|
|
aliases: ['blob-constructor']
|
|
});
|
|
});
|