diff --git a/demo/index.html b/demo/index.html
index d7b2af7..89a3049 100644
--- a/demo/index.html
+++ b/demo/index.html
@@ -7,9 +7,10 @@
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&family=Roboto:wght@300;400;500&display=swap"
/>
+
@@ -21,6 +22,17 @@
await import('@webcomponents/scoped-custom-element-registry');
await import('../dist/oscd-shell.js');
await import('./index.js');
+
+ const _customElementsDefine = window.customElements.define;
+ window.customElements.define = (name, cl, conf) => {
+ if (!customElements.get(name)) {
+ try {
+ _customElementsDefine.call(window.customElements, name, cl, conf);
+ } catch (e) {
+ console.warn(e);
+ }
+ }
+ };