try mobile safari again

This commit is contained in:
AJ ONeal 2015-10-23 02:26:11 -07:00
parent 1d7a1689ec
commit 51ab2d9797
1 changed files with 2 additions and 2 deletions

View File

@ -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" }
}