diff --git a/stubs/resources/js/elements/turbo-echo-stream-tag.js b/stubs/resources/js/elements/turbo-echo-stream-tag.js index d654faf..0d3d5c2 100644 --- a/stubs/resources/js/elements/turbo-echo-stream-tag.js +++ b/stubs/resources/js/elements/turbo-echo-stream-tag.js @@ -39,4 +39,6 @@ class TurboEchoStreamSourceElement extends HTMLElement { } } -customElements.define('turbo-echo-stream-source', TurboEchoStreamSourceElement) +if (customElements.get('turbo-echo-stream-source') === undefined) { + customElements.define('turbo-echo-stream-source', TurboEchoStreamSourceElement) +}