diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-21 16:04:26 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-05-21 16:04:26 +0200 |
| commit | 78ba18b890655b12650afedac3a9d57ef95567d0 (patch) | |
| tree | fce51444285a4b20f28e1c74f314ddce784e861a /src/frontend/z-component.js | |
| parent | ab49ab9f5cc751d185b2049896913842bd33bf7b (diff) | |
frontend: implement more sophisticated minimizer
Diffstat (limited to 'src/frontend/z-component.js')
| -rw-r--r-- | src/frontend/z-component.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/frontend/z-component.js b/src/frontend/z-component.js index e9b63ff..5e430b5 100644 --- a/src/frontend/z-component.js +++ b/src/frontend/z-component.js @@ -3,14 +3,13 @@ customElements.define( class extends HTMLElement { constructor() { super(); - this.attachShadow({ mode: 'open' }) + this.attachShadow({ mode: 'open' }); } connectedCallback() { const type = this.getAttribute('type'); const template = document.getElementById(`--${type}`); const node = document.importNode(template.content, true); - this.shadowRoot.id = 'root'; this.shadowRoot.appendChild(node); } } |