Disable plugin call/check if plugins are not enabled in the config

Ryan Blenis committed Nov 1, 2019 at 16:58 UTC cb6cc0da7454dc29c43afbc8976eae2a5b4b79eb
1 file changed +1 -1
views/default.handlebars
+1 -1
@@ -1308,7 +1308,7 @@
1308 // Fetch list of meshes, nodes, files
1309 meshserver.send({ action: 'meshes' });
1310 meshserver.send({ action: 'nodes', id: '{{currentNode}}' });
1311 - meshserver.send({ action: 'plugins' });
1311 + if (pluginHandler != null) { meshserver.send({ action: 'plugins' }); }
1312 if ('{{currentNode}}' == '') { meshserver.send({ action: 'files' }); }
1313 if ('{{viewmode}}' == '') { go(1); }
1314 authCookieRenewTimer = setInterval(function () { meshserver.send({ action: 'authcookie' }); }, 1800000); // Request a cookie refresh every 30 minutes.