Add verys important return to ensure Promise chain works

This commit is contained in:
rugk 2018-10-08 21:04:13 +02:00
parent 746debf586
commit 17131f3172
No known key found for this signature in database
GPG Key ID: 05D40A636AFAB34D

View File

@ -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();
});