mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
Add verys important return to ensure Promise chain works
This commit is contained in:
parent
746debf586
commit
17131f3172
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user