mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03: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…
Reference in New Issue
Block a user