feat: safe mode updates

This commit is contained in:
Anoop M D 2024-08-11 18:19:15 +05:30
parent 6d01c46d50
commit 969fe8e3cf

View File

@ -86,8 +86,10 @@ function decryptString(str) {
} }
if (algo === ELECTRONSAFESTORAGE_ALGO) { if (algo === ELECTRONSAFESTORAGE_ALGO) {
if (safeStorage && safeStorage.isEncryptionAvailable()) {
return safeStorageDecrypt(encryptedString); return safeStorageDecrypt(encryptedString);
} }
}
if (algo === AES256_ALGO) { if (algo === AES256_ALGO) {
return aes256Decrypt(encryptedString); return aes256Decrypt(encryptedString);