mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-18 07:31:04 +00:00
22 lines
561 B
JavaScript
22 lines
561 B
JavaScript
/*!
|
|
{
|
|
"name": "Blob URLs",
|
|
"property": "bloburls",
|
|
"caniuse": "bloburls",
|
|
"notes": [{
|
|
"name": "W3C Working Draft Spec",
|
|
"href": "https://www.w3.org/TR/FileAPI/#creating-revoking"
|
|
}],
|
|
"tags": ["file", "url"],
|
|
"authors": ["Ron Waldon (@jokeyrhyme)"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for creating Blob URLs
|
|
*/
|
|
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
|
|
var url = prefixed('URL', window, false);
|
|
url = url && window[url];
|
|
Modernizr.addTest('bloburls', url && 'revokeObjectURL' in url && 'createObjectURL' in url);
|
|
});
|