Skip to content

Commit

Permalink
fix spyware browser
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Jun 3, 2024
1 parent b7921f3 commit 079f852
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,6 @@ class TabRow extends HTMLDivElement {
justify-content: center;
gap: 0 5px;
`

document.getElementsByClassName('navbar').item(0)?.appendChild(this)
}

getSubs () {
Expand Down Expand Up @@ -490,6 +488,7 @@ customElements.define('tab-row', TabRow, { extends: 'div' })
customElements.define('sub-tab', $Tab, { extends: 'button' })

export const tabRow = new TabRow()
document.getElementsByClassName('navbar').item(0)?.appendChild(tabRow)

tabRow.appendButton(
new $Tab({ id: 'buildingstab', i18n: 'tabs.main.buildings' })
Expand Down

0 comments on commit 079f852

Please sign in to comment.