class CustomHeader extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
`; // We need to call feather.replace() after the component renders setTimeout(() => { if (window.feather) { window.feather.replace(); } }, 100); } } customElements.define('custom-header', CustomHeader);