From 17131f3172ebe8a660ec7650dcedda2fe4ce7e85 Mon Sep 17 00:00:00 2001 From: rugk Date: Mon, 8 Oct 2018 21:04:13 +0200 Subject: [PATCH] Add verys important return to ensure Promise chain works --- js/privatebin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 0975e74a..3d83e990 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -3943,7 +3943,7 @@ jQuery.PrivateBin = (function($, sjcl, RawDeflate) { // TODO: change this callback to also use Promises instead, // this here just waits - Promise.all([encryptAttachmentPromise, encryptAttachmentNamePromise]).then(() => { + return Promise.all([encryptAttachmentPromise, encryptAttachmentNamePromise]).then(() => { // run callback return callback(); });