diff --git a/bower_components/botp/sha1-hmac.js b/bower_components/botp/sha1-hmac.js index 2f3439b..a0a2494 100644 --- a/bower_components/botp/sha1-hmac.js +++ b/bower_components/botp/sha1-hmac.js @@ -12,10 +12,10 @@ exports.sha1Hmac = function (key, bytes) { var Unibabel = window.Unibabel; - if (window.crypto && window.crypto.subtle) { + if (window.crypto) { return (window.crypto.subtle||window.crypto.webkitSubtle).importKey( "raw" - , key + , key.buffer , { name: "HMAC" , hash: { name: "SHA-1" } }