mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
IE fixes and crypto shims
This commit is contained in:
@@ -76,7 +76,7 @@ angular
|
||||
var sign = function (keyBytes, timeBytes) {
|
||||
return window.crypto.subtle.importKey('raw', keyBytes,
|
||||
{ name: 'HMAC', hash: { name: 'SHA-1' } }, false, ['sign']).then(function (key) {
|
||||
return window.crypto.subtle.sign({ name: 'HMAC' }, key, timeBytes);
|
||||
return window.crypto.subtle.sign({ name: 'HMAC', hash: { name: 'SHA-1' } }, key, timeBytes);
|
||||
}).then(function (signature) {
|
||||
return buff2hex(signature);
|
||||
}).catch(function (err) {
|
||||
|
||||
Reference in New Issue
Block a user