mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Meshcore revert
This commit is contained in:
commit
ad7e8a4644
@ -2574,7 +2574,6 @@ function createMeshCore(agent) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Starting function
|
||||
obj.start = function () {
|
||||
// Setup the mesh agent event handlers
|
||||
|
1
agents/meshcore.min.js
vendored
1
agents/meshcore.min.js
vendored
@ -2574,7 +2574,6 @@ function createMeshCore(agent) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Starting function
|
||||
obj.start = function () {
|
||||
// Setup the mesh agent event handlers
|
||||
|
@ -1278,11 +1278,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
||||
if ((parent.parent.pluginHandler == null) || (typeof command.plugin != 'string')) break;
|
||||
try {
|
||||
var pluginHandler = require('./pluginHandler.js').pluginHandler(parent.parent);
|
||||
if (command.plugin == '__all') {
|
||||
pluginHandler.callHook(command.hook, command, obj, parent);
|
||||
} else {
|
||||
pluginHandler.plugins[command.plugin].serveraction(command, obj, parent);
|
||||
}
|
||||
pluginHandler.plugins[command.plugin].serveraction(command, obj, parent);
|
||||
} catch (e) {
|
||||
console.log('Error loading plugin handler (' + e + ')');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user