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

vault listing page fixes

This commit is contained in:
Kyle Spearrin
2017-10-13 23:11:42 -04:00
parent b5c70c4941
commit 5a1bf8299f
9 changed files with 71 additions and 54 deletions

View File

@@ -139,14 +139,11 @@ function initSyncService() {
}
function syncCiphers(self, userId, response) {
var logins = {};
var ciphers = {};
for (var i = 0; i < response.length; i++) {
var data = response[i];
if (data.type === 1) {
logins[data.id] = new LoginData(data, userId);
}
ciphers[response[i].id] = new CipherData(response[i], userId);
}
return self.loginService.replace(logins);
return self.loginService.replace(ciphers);
}
function syncSettings(self, userId, response) {