mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Pad: Run padLoad
hook asynchronously
This commit is contained in:
parent
b38d66b30b
commit
07146591dd
2 changed files with 2 additions and 1 deletions
|
@ -395,7 +395,7 @@ Pad.prototype.init = async function (text, authorId = '') {
|
|||
const firstChangeset = Changeset.makeSplice('\n', 0, 0, text);
|
||||
await this.appendRevision(firstChangeset, authorId);
|
||||
}
|
||||
hooks.callAll('padLoad', {pad: this});
|
||||
await hooks.aCallAll('padLoad', {pad: this});
|
||||
};
|
||||
|
||||
Pad.prototype.copy = async function (destinationID, force) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue