rm try catch
This commit is contained in:
parent
542943c29f
commit
3434393b21
1 changed files with 4 additions and 3 deletions
|
|
@ -34,10 +34,11 @@ Storage.prototype._encryptObj = function(obj) {
|
|||
|
||||
Storage.prototype._decrypt = function(base64) {
|
||||
var decryptedStr=null;
|
||||
try {
|
||||
var decrypted = CryptoJS.AES.decrypt(base64, this._getPassphrase());
|
||||
var decrypted = CryptoJS.AES.decrypt(base64, this._getPassphrase());
|
||||
|
||||
if (decrypted)
|
||||
decryptedStr = decrypted.toString(CryptoJS.enc.Utf8);
|
||||
} catch (e) {}
|
||||
|
||||
return decryptedStr;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue