mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Retain callHook args as individual arguments
This commit is contained in:
parent
786934b72c
commit
11f2721533
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ module.exports.pluginHandler = function (parent) {
|
||||||
obj.callHook = function(hookName, ...args) {
|
obj.callHook = function(hookName, ...args) {
|
||||||
for (const p of Object.keys(obj)) {
|
for (const p of Object.keys(obj)) {
|
||||||
if (typeof obj[p][hookName] == 'function') {
|
if (typeof obj[p][hookName] == 'function') {
|
||||||
obj[p][hookName](args);
|
obj[p][hookName].apply(this, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue