Refactor filesize component to slot
This commit is contained in:
parent
fe7c27258e
commit
912909836c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ element(class FileSize extends HTMLElement {
|
|||
.then(response=>response.arrayBuffer())
|
||||
.then(buffer => buffer.byteLength)
|
||||
.then(length => {
|
||||
this.shadowRoot.replaceChildren(text`${fragment(...this.cloneChildren())} (${length} Bytes unminified)`)
|
||||
this.shadowRoot.replaceChildren(text`${html.slot()} (${length} Bytes unminified)`)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue