mirror of
https://github.com/bitwarden/web
synced 2025-12-10 21:33:16 +00:00
undefined checks
This commit is contained in:
@@ -9,8 +9,8 @@ angular
|
|||||||
_orgKeys,
|
_orgKeys,
|
||||||
_privateKey,
|
_privateKey,
|
||||||
_publicKey,
|
_publicKey,
|
||||||
_crypto = $window.crypto,
|
_crypto = typeof $window.crypto != 'undefined' ? $window.crypto : null,
|
||||||
_subtle = $window.crypto.subtle;
|
_subtle = (!!_crypto && typeof $window.crypto.subtle != 'undefined') ? $window.crypto.subtle : null;
|
||||||
|
|
||||||
_service.setKey = function (key) {
|
_service.setKey = function (key) {
|
||||||
_key = key;
|
_key = key;
|
||||||
|
|||||||
Reference in New Issue
Block a user