mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-18 01:16:24 +08:00
Use for loop without keys
This commit is contained in:
parent
061bac9744
commit
3208590aa5
1 changed files with 5 additions and 5 deletions
|
@ -17,11 +17,11 @@
|
||||||
$scope.$watch(function () {
|
$scope.$watch(function () {
|
||||||
return $window.PassmanExporter;
|
return $window.PassmanExporter;
|
||||||
}, function (exporters) {
|
}, function (exporters) {
|
||||||
for (var key in exporters) {
|
exporters = Object.keys( angular.copy(exporters ));
|
||||||
|
for (var i = 0; i < exporters.length; i++) {
|
||||||
var exporter = exporters[key];
|
var exporter = exporters[i];
|
||||||
if (exporter.hasOwnProperty('info')) {
|
if ($window.PassmanExporter[exporter].hasOwnProperty('info')) {
|
||||||
$scope.available_exporters.push(exporter.info);
|
$scope.available_exporters.push($window.PassmanExporter[exporter].info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue