fix: btn list display

anti-detection
This commit is contained in:
Xmader 2020-11-23 11:52:28 -05:00
parent ddab46e69d
commit 03e7f1cae3
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@ div {
display: flex;
align-items: center;
font-family: 'Open Sans', 'Roboto', 'Helvetica neue', Helvetica, sans-serif;
position: absolute;
z-index: 999;
background: #f6f6f6;
}
button {

View File

@ -98,9 +98,9 @@ export class BtnList {
// hide buttons using the shadow DOM
const newParent = btnParent.cloneNode(false) as HTMLDivElement
newParent.append(...this.list.map(e => e.cloneNode(true)))
const slot = document.createElement('slot')
newParent.append(slot)
shadow.append(newParent)
const slot = document.createElement('slot')
shadow.append(slot)
return btnParent
}