try mobile safari again
This commit is contained in:
parent
1d7a1689ec
commit
51ab2d9797
|
@ -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" }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue