diff --git a/src/action-handler-directive.ts b/src/action-handler-directive.ts index b55ba64..9f3ccc3 100644 --- a/src/action-handler-directive.ts +++ b/src/action-handler-directive.ts @@ -154,7 +154,9 @@ class ActionHandler extends HTMLElement implements ActionHandler { } } -customElements.define('action-handler-clock-weather', ActionHandler) +if (!customElements.get('action-handler-clock-weather')) { + customElements.define('action-handler-clock-weather', ActionHandler) +} const getActionHandler = (): ActionHandler => { const body = document.body