class CustomHeader extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
`; // Initialize feather icons const script = document.createElement('script'); script.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"; script.onload = () => { if (this.shadowRoot) { feather.replace(); } }; this.shadowRoot.appendChild(script); } } customElements.define('custom-header', CustomHeader);