From 4d82e7db7aa45177822f249bb2e7bf237096cb6f Mon Sep 17 00:00:00 2001 From: WolFi Date: Sat, 30 Sep 2017 14:49:21 +0200 Subject: [PATCH] FIX #264 by @OS3DrNick Seems that I forgot to check if there is no need to export files on that callback nightmare --- js/exporters/exporter-main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/exporters/exporter-main.js b/js/exporters/exporter-main.js index 53d1ab9b..48cccc5f 100644 --- a/js/exporters/exporter-main.js +++ b/js/exporters/exporter-main.js @@ -98,7 +98,12 @@ if (!window['PassmanExporter']) { }).bind(this)); } } + + // We have finished downloading everything, so let's hand over job to somewhere else! + if (this.parent.total === 0) { + this.call_then(this.parent.cred); + } }, t); } }; -} +} \ No newline at end of file