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

tuneing up mdoels and services for site add

This commit is contained in:
Kyle Spearrin
2016-09-05 01:49:44 -04:00
parent cc67d12c57
commit abb6f37af2
8 changed files with 141 additions and 114 deletions

View File

@@ -13,7 +13,7 @@ var CipherString = function (encryptedString) {
CipherString.prototype.decrypt = function (callback) {
if (!_decryptedValue) {
var cryptoService = chrome.extension.getBackgroundPage().cryptoService;
_decryptedValue = cryptoService.Decrypt(this);
_decryptedValue = cryptoService.decrypt(this);
}
return _decryptedValue;
@@ -39,7 +39,7 @@ var Site = function (obj, alreadyEncrypted) {
this.notes = new CipherString(obj.notes);
}
this.favorite = new obj.favorite;
this.favorite = obj.favorite ? true : false;
};
var Folder = function (obj, alreadyEncrypted) {