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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user