From 912909836c39e152444e929b4f2479d9385f91e2 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 22 Jun 2022 16:00:10 +0200 Subject: [PATCH] Refactor filesize component to slot --- page/filesize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/filesize.js b/page/filesize.js index c45ecb4..a7a195f 100644 --- a/page/filesize.js +++ b/page/filesize.js @@ -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)`) }) } }