Error checking of object for correct values

Ryan Blenis committed Dec 2, 2019 at 16:14 UTC 493917c08c65f9542605a86fb1f065f62f4eef5a
1 file changed +1
pluginHandler.js
+1
@@ -93,6 +93,7 @@ module.exports.pluginHandler = function (parent) {
93 var d = null;
94 if (typeof pluginRegInfo == 'function') d = pluginRegInfo();
95 else d = pluginRegInfo;
96 + if (d.tabId == null || d.tabTitle == null) { return false; }
97 if (!Q(d.tabId)) {
98 var defaultOn = 'class="on"';
99 if (Q('p19headers').querySelectorAll("span.on").length) defaultOn = '';