mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 02:16:16 -04:00
pad_editbar: Call the callback asynchronously
This follows JavaScript best practices.
This commit is contained in:
parent
148e10821b
commit
c629ee09a8
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue