push original domain if it doesnt belong to any eqiv groups

This commit is contained in:
Kyle Spearrin 2017-01-14 17:58:22 -05:00
parent 54119e1e94
commit 80945bd3bc
1 changed files with 5 additions and 0 deletions

View File

@ -140,10 +140,15 @@ function initLoginService() {
for (var j = 0; j < eqDomains[i].length; j++) {
if (eqDomains[i][j] === domain) {
matchingDomains = matchingDomains.concat(eqDomains[i]);
break;
}
}
}
if (!matchingDomains.length) {
matchingDomains.push(domain);
}
return matchingDomains;
});