mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
pluginfw: PadMessageHandler: Pass socket.io Socket object to clientVars hook (#4245)
Also revise the clientVars hook documentation.
This commit is contained in:
parent
4c0ab8a14e
commit
f0b7dc7c53
2 changed files with 29 additions and 8 deletions
|
@ -1168,7 +1168,7 @@ async function handleClientReady(client, message)
|
|||
}
|
||||
|
||||
// call the clientVars-hook so plugins can modify them before they get sent to the client
|
||||
let messages = await hooks.aCallAll("clientVars", { clientVars: clientVars, pad: pad });
|
||||
let messages = await hooks.aCallAll('clientVars', {clientVars, pad, socket: client});
|
||||
|
||||
// combine our old object with the new attributes from the hook
|
||||
for (let msg of messages) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue