From b4870bc2f3ebc167aa0abc191e409ba89f208743 Mon Sep 17 00:00:00 2001 From: brantje Date: Sat, 8 Oct 2016 13:41:08 +0200 Subject: [PATCH] Indicate that C_Promise is a global var --- js/app/controllers/export.js | 1 + js/exporters/exporter-csv.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/app/controllers/export.js b/js/app/controllers/export.js index c50600b1..e7385c14 100644 --- a/js/app/controllers/export.js +++ b/js/app/controllers/export.js @@ -18,6 +18,7 @@ return $window.PassmanExporter; }, function (exporters) { for (var key in exporters) { + var exporter = exporters[key]; if (exporter.hasOwnProperty('info')) { $scope.available_exporters.push(exporter.info); diff --git a/js/exporters/exporter-csv.js b/js/exporters/exporter-csv.js index 92ca0f0e..12a87620 100644 --- a/js/exporters/exporter-csv.js +++ b/js/exporters/exporter-csv.js @@ -12,6 +12,7 @@ PassmanExporter.csv = { }; PassmanExporter.csv.export = function (credentials) { + /** global: C_Promise */ return new C_Promise(function () { var _this = this; var headers = ['label','username','password','email','description','tags'];