mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-15 16:38:51 -04: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;
|
var d = null;
|
||||||
if (typeof pluginRegInfo == 'function') d = pluginRegInfo();
|
if (typeof pluginRegInfo == 'function') d = pluginRegInfo();
|
||||||
else d = pluginRegInfo;
|
else d = pluginRegInfo;
|
||||||
|
if (d.tabId == null || d.tabTitle == null) { return false; }
|
||||||
if (!Q(d.tabId)) {
|
if (!Q(d.tabId)) {
|
||||||
var defaultOn = 'class="on"';
|
var defaultOn = 'class="on"';
|
||||||
if (Q('p19headers').querySelectorAll("span.on").length) defaultOn = '';
|
if (Q('p19headers').querySelectorAll("span.on").length) defaultOn = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user