We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a70ff42 commit aca2ebfCopy full SHA for aca2ebf
packages/uui-base/lib/registration/index.ts
@@ -21,9 +21,7 @@ export function defineElement(
21
22
const existingElement = window.customElements.get(name);
23
24
- if (existingElement) {
25
- console.warn(`${name} is already defined`, existingElement); // TODO: Remove this in production
26
- } else {
+ if (!existingElement) {
27
window.customElements.define(name, constructor, options);
28
}
29
};
0 commit comments