mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 23:43:20 -05:00
Error checking of object for correct values
This commit is contained in:
parent
7e437330ae
commit
493917c08c
@ -93,6 +93,7 @@ module.exports.pluginHandler = function (parent) {
|
||||
var d = null;
|
||||
if (typeof pluginRegInfo == 'function') d = pluginRegInfo();
|
||||
else d = pluginRegInfo;
|
||||
if (d.tabId == null || d.tabTitle == null) { return false; }
|
||||
if (!Q(d.tabId)) {
|
||||
var defaultOn = 'class="on"';
|
||||
if (Q('p19headers').querySelectorAll("span.on").length) defaultOn = '';
|
||||
|
Loading…
Reference in New Issue
Block a user