mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-23 12:43:14 -05:00
Error checking of object for correct values
This commit is contained in:
parent
1d9ad31545
commit
3fa1c322f5
@ -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…
x
Reference in New Issue
Block a user