mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-23 05:42:13 +03:00
fix internal arg passing
This commit is contained in:
parent
5dda176e07
commit
ca163ea218
@ -137,7 +137,7 @@ module.exports.pluginHandler = function (parent) {
|
|||||||
for (var p in obj.plugins) {
|
for (var p in obj.plugins) {
|
||||||
if (typeof obj.plugins[p][hookName] == 'function') {
|
if (typeof obj.plugins[p][hookName] == 'function') {
|
||||||
try {
|
try {
|
||||||
obj.plugins[p][hookName](args);
|
obj.plugins[p][hookName](...args);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Error ocurred while running plugin hook" + p + ':' + hookName + ' (' + e + ')');
|
console.log("Error ocurred while running plugin hook" + p + ':' + hookName + ' (' + e + ')');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user