1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 11:13:46 +00:00

fix sync bugs on login/logout

This commit is contained in:
Kyle Spearrin
2017-01-17 21:43:26 -05:00
parent 80945bd3bc
commit f84bfcb19a
6 changed files with 24 additions and 23 deletions

View File

@@ -137,11 +137,8 @@ function initLoginService() {
var eqDomainsPromise = self.settingsService.getEquivalentDomains().then(function (eqDomains) {
var matchingDomains = [];
for (var i = 0; i < eqDomains.length; i++) {
for (var j = 0; j < eqDomains[i].length; j++) {
if (eqDomains[i][j] === domain) {
matchingDomains = matchingDomains.concat(eqDomains[i]);
break;
}
if (eqDomains[i].length && eqDomains[i].indexOf(domain) >= 0) {
matchingDomains = matchingDomains.concat(eqDomains[i]);
}
}

View File

@@ -230,10 +230,6 @@ function initSyncService() {
throw 'callback function required';
}
if (!(date instanceof Date)) {
throw 'date must be a Date object';
}
this.userService.getUserId(function (userId) {
var lastSyncKey = 'lastSync_' + userId;