Skip to content

v0.8.3 - Fix custom card not loading

Choose a tag to compare

@eyalgal eyalgal released this 28 May 23:57

Fixes the custom card intermittently failing to load with "Custom element doesn't exist" / "Illegal constructor" (#16).

This happened when the @webcomponents/scoped-custom-element-registry polyfill (loaded by integrations like browser_mod and hui-element) was present. The card now binds its base class to the live window.HTMLElement and registers in the live window.customElements, re-running registration across deferred passes so it loads reliably regardless of polyfill load order.