diff --git a/js/lib/libghettoui/popup/TabItem.js b/js/lib/libghettoui/popup/TabItem.js index 99d0272..609fcb4 100644 --- a/js/lib/libghettoui/popup/TabItem.js +++ b/js/lib/libghettoui/popup/TabItem.js @@ -1,11 +1,15 @@ class TabItem extends BaseElement { - constructor (id, name, label, isIframe, onClick, additionalClasses) { + constructor (id, name, label, isIframe, onClick, badge, additionalClasses) { + if (badge) { + label = `
${badge.name}
${label}`; + } super(id, label, onClick, additionalClasses); this.element.classList.add('tabitem'); if (isIframe) { this.element.classList.add('tabitem-iframe'); } + this.name = name; }