Skip to content

Commit adb3dfa

Browse files
authored
Merge pull request retejs#15 from vamidi/patch-1
Check for rete-element
2 parents 4a13877 + 46425b2 commit adb3dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ import { CustomComponent } from './custom.component';
4242
export class ReteModule {
4343
constructor(injector: Injector) { // StaticInjectorError due to 'npm link'
4444
const CustomElement = createCustomElement(CustomComponent, { injector });
45-
customElements.define('rete-element', CustomElement);
45+
if (!customElements.get('rete-element')) customElements.define('rete-element', CustomElement);
4646
}
4747
}

0 commit comments

Comments
 (0)