mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-25 21:53:14 -05:00
Retain callHook args as individual arguments
This commit is contained in:
parent
e7d662f2f4
commit
800504f5ed
@ -70,7 +70,7 @@ module.exports.pluginHandler = function (parent) {
|
||||
obj.callHook = function(hookName, ...args) {
|
||||
for (const p of Object.keys(obj)) {
|
||||
if (typeof obj[p][hookName] == 'function') {
|
||||
obj[p][hookName](args);
|
||||
obj[p][hookName].apply(this, args);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user