rm try catch

This commit is contained in:
Matias Alejo Garcia 2014-05-07 10:24:05 -03:00
commit 3434393b21

View file

@ -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;
};