1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

adjustments to site getall

This commit is contained in:
Kyle Spearrin
2016-09-05 11:05:27 -04:00
parent abb6f37af2
commit a7c8dec730
3 changed files with 24 additions and 8 deletions

View File

@@ -13,10 +13,13 @@ var CipherString = function (encryptedString) {
CipherString.prototype.decrypt = function (callback) {
if (!_decryptedValue) {
var cryptoService = chrome.extension.getBackgroundPage().cryptoService;
_decryptedValue = cryptoService.decrypt(this);
cryptoService.decrypt(this, function (decValue) {
_decryptedValue = decValue;
callback(_decryptedValue);
});
}
return _decryptedValue;
callback(_decryptedValue);
};
}();