mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-05 16:48:51 +00:00
Add documentation to getWebCrypto
This commit is contained in:
@@ -307,6 +307,11 @@ module.exports = {
|
||||
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() {
|
||||
if (config.useWebCrypto === false) {
|
||||
// make web crypto optional
|
||||
|
||||
Reference in New Issue
Block a user