We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d493356 commit 46425b2Copy full SHA for 46425b2
src/module.ts
@@ -42,6 +42,6 @@ import { CustomComponent } from './custom.component';
42
export class ReteModule {
43
constructor(injector: Injector) { // StaticInjectorError due to 'npm link'
44
const CustomElement = createCustomElement(CustomComponent, { injector });
45
- customElements.define('rete-element', CustomElement);
+ if (!customElements.get('rete-element')) customElements.define('rete-element', CustomElement);
46
}
47
0 commit comments