mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Disable plugin call/check if plugins are not enabled in the config
This commit is contained in:
parent
0bb1ffe1dd
commit
b3d24c37f0
@ -1308,7 +1308,7 @@
|
|||||||
// Fetch list of meshes, nodes, files
|
// Fetch list of meshes, nodes, files
|
||||||
meshserver.send({ action: 'meshes' });
|
meshserver.send({ action: 'meshes' });
|
||||||
meshserver.send({ action: 'nodes', id: '{{currentNode}}' });
|
meshserver.send({ action: 'nodes', id: '{{currentNode}}' });
|
||||||
meshserver.send({ action: 'plugins' });
|
if (pluginHandler != null) { meshserver.send({ action: 'plugins' }); }
|
||||||
if ('{{currentNode}}' == '') { meshserver.send({ action: 'files' }); }
|
if ('{{currentNode}}' == '') { meshserver.send({ action: 'files' }); }
|
||||||
if ('{{viewmode}}' == '') { go(1); }
|
if ('{{viewmode}}' == '') { go(1); }
|
||||||
authCookieRenewTimer = setInterval(function () { meshserver.send({ action: 'authcookie' }); }, 1800000); // Request a cookie refresh every 30 minutes.
|
authCookieRenewTimer = setInterval(function () { meshserver.send({ action: 'authcookie' }); }, 1800000); // Request a cookie refresh every 30 minutes.
|
||||||
|
Loading…
Reference in New Issue
Block a user