mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-17 15:11:04 +00:00
22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
/*!
|
|
{
|
|
"name": "Web Cryptography",
|
|
"property": "cryptography",
|
|
"caniuse": "cryptography",
|
|
"tags": ["crypto"],
|
|
"authors": ["roblarsen"],
|
|
"notes": [{
|
|
"name": "W3C Editor's Draft Spec",
|
|
"href": "https://www.w3.org/TR/WebCryptoAPI/"
|
|
}],
|
|
"polyfills": ["polycrypt"]
|
|
}
|
|
!*/
|
|
/* DOC
|
|
Detects support for the cryptographic functionality available under window.crypto.subtle
|
|
*/
|
|
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
|
|
var crypto = prefixed('crypto', window);
|
|
Modernizr.addTest('crypto', !!prefixed('subtle', crypto));
|
|
});
|