2
0
mirror of https://git.coolaj86.com/coolaj86/browser-authenticator.js synced 2025-03-14 04:10:44 +00:00

try mobile safari again

This commit is contained in:
AJ ONeal 2015-10-23 02:26:11 -07:00
parent 1d7a1689ec
commit 51ab2d9797

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