fix: script detected

This commit is contained in:
Xmader 2020-11-21 15:31:57 -05:00
parent d873a9b89e
commit 71091c9205
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 2 additions and 0 deletions

View File

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