From 493917c08c65f9542605a86fb1f065f62f4eef5a Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Mon, 2 Dec 2019 16:14:04 -0500 Subject: [PATCH] Error checking of object for correct values --- pluginHandler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pluginHandler.js b/pluginHandler.js index 4a1d347a..47f561b6 100644 --- a/pluginHandler.js +++ b/pluginHandler.js @@ -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 = '';