Closed lazka closed 3 years ago
<script type="module"> import 'https://jspm.dev/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js'; class SomethingDifferent extends HTMLElement {} customElements.define('something-different', SomethingDifferent); customElements.whenDefined('something-different').then(() => { console.log("works"); // this doesn't get called }); </script>
I put it on a codepen https://codepen.io/daKmoR/pen/oNBrVwL
Thanks!