fix: btn list display
anti-detection
This commit is contained in:
parent
ddab46e69d
commit
03e7f1cae3
2 changed files with 5 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue