From 5d07ee1eb122a3394c5f0e2fcae403e3f2a0542a Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 1 Oct 2014 11:23:34 +0200 Subject: [PATCH] Add documentation to getWebCrypto --- src/util.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util.js b/src/util.js index 8b16a133..97612f5d 100644 --- a/src/util.js +++ b/src/util.js @@ -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