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,7 +86,9 @@ function decryptString(str) {
} }
if (algo === ELECTRONSAFESTORAGE_ALGO) { if (algo === ELECTRONSAFESTORAGE_ALGO) {
return safeStorageDecrypt(encryptedString); if (safeStorage && safeStorage.isEncryptionAvailable()) {
return safeStorageDecrypt(encryptedString);
}
} }
if (algo === AES256_ALGO) { if (algo === AES256_ALGO) {