From e723af08490ae7d42a0ad5d8bb137656c00b2b49 Mon Sep 17 00:00:00 2001 From: Armand Date: Thu, 30 Apr 2020 11:32:16 +0200 Subject: [PATCH] Update focus-trap.ts --- src/lib/focus-trap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/focus-trap.ts b/src/lib/focus-trap.ts index 85d6477..1aa8979 100644 --- a/src/lib/focus-trap.ts +++ b/src/lib/focus-trap.ts @@ -205,4 +205,4 @@ export class FocusTrap extends HTMLElement implements IFocusTrap { } } -window.customElements.define("focus-trap", FocusTrap); \ No newline at end of file +if (!window.customElements.get('focus-trap')) customElements.define('focus-trap', FocusTrap);