Add documentation to getWebCrypto
This commit is contained in:
parent
72cb1cfc49
commit
5d07ee1eb1
|
@ -307,6 +307,11 @@ module.exports = {
|
||||||
return "unknown";
|
return "unknown";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get native Web Cryptography api. The default configuration is to use
|
||||||
|
* the api when available. But it can also be deactivated with config.useWebCrypto
|
||||||
|
* @return {Object} The SubtleCrypto api or 'undefined'
|
||||||
|
*/
|
||||||
getWebCrypto: function() {
|
getWebCrypto: function() {
|
||||||
if (config.useWebCrypto === false) {
|
if (config.useWebCrypto === false) {
|
||||||
// make web crypto optional
|
// make web crypto optional
|
||||||
|
|
Loading…
Reference in New Issue
Block a user