mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-28 12:45:45 +01:00
undefined checks
This commit is contained in:
parent
bc8892a237
commit
b9cbc1546c
@ -9,8 +9,8 @@ angular
|
||||
_orgKeys,
|
||||
_privateKey,
|
||||
_publicKey,
|
||||
_crypto = $window.crypto,
|
||||
_subtle = $window.crypto.subtle;
|
||||
_crypto = typeof $window.crypto != 'undefined' ? $window.crypto : null,
|
||||
_subtle = (!!_crypto && typeof $window.crypto.subtle != 'undefined') ? $window.crypto.subtle : null;
|
||||
|
||||
_service.setKey = function (key) {
|
||||
_key = key;
|
||||
|
Loading…
Reference in New Issue
Block a user