1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 09:32:06 +01:00

fix some linter complaints

This commit is contained in:
Kyle Spearrin 2017-01-20 23:39:43 -05:00
parent f3445c24b9
commit 79fecd6b03

View File

@ -8,8 +8,9 @@
$scope.equivalentDomains = [];
apiService.settings.getDomains({}, function (response) {
var i;
if (response.EquivalentDomains) {
for (var i = 0; i < response.EquivalentDomains.length; i++) {
for (i = 0; i < response.EquivalentDomains.length; i++) {
$scope.equivalentDomains.push(response.EquivalentDomains[i].join(', '));
}
}
@ -27,16 +28,16 @@
$scope.toggleExclude = function (globalDomain) {
globalDomain.excluded = !globalDomain.excluded;
}
};
$scope.customize = function (globalDomain) {
globalDomain.excluded = true;
$scope.equivalentDomains.push(globalDomain.domains);
}
};
$scope.delete = function (i) {
$scope.equivalentDomains.splice(i, 1);
}
};
$scope.addEdit = function (i) {
var addEditModal = $uibModal.open({
@ -62,7 +63,7 @@
$scope.equivalentDomains.push(returnObj.domains);
}
});
}
};
$scope.save = function () {
var request = {