Error checking of object for correct values

This commit is contained in:
Ryan Blenis 2019-12-02 16:14:04 -05:00
parent 7e437330ae
commit 493917c08c
1 changed files with 1 additions and 0 deletions

View File

@ -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 = '';