pad_editbar: Call the callback asynchronously

This follows JavaScript best practices.
pull/5152/head
Richard Hansen 2021-07-15 18:58:58 -04:00
parent 148e10821b
commit c629ee09a8
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ exports.padeditbar = {
} catch (err) {
cbErr = err || new Error(err);
} finally {
if (cb) cb(cbErr);
if (cb) Promise.resolve().then(() => cb(cbErr));
}
},
setSyncStatus: (status) => {