Fix header showing multiple times when context switching

This commit is contained in:
Ryan Blenis 2019-10-09 03:06:37 -04:00
parent b86779e862
commit 4e90d358a4

View File

@ -60,7 +60,9 @@ module.exports.pluginHandler = function (parent) {
};
obj.registerPluginTab = function(pluginRegInfo) {
var d = pluginRegInfo();
QA('p19headers', '<span onclick="return pluginHandler.callPluginPage(\\''+d.tabId+'\\');">'+d.tabTitle+'</span>');
if (!Q(d.tabId)) {
QA('p19headers', '<span onclick="return pluginHandler.callPluginPage(\\''+d.tabId+'\\');">'+d.tabTitle+'</span>');
}
};
obj.callPluginPage = function(id) {
var pages = Q('p19pages').querySelectorAll("#p19pages>div");