Skip to content

Commit 13e4c5b

Browse files
committed
coerce element as Node
1 parent acf8420 commit 13e4c5b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/widget/src/web-component.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ function initializeSkipWidget() {
6060
}
6161

6262
// Upgrade any existing skip-widget elements
63-
document.querySelectorAll(WEB_COMPONENT_NAME).forEach((el) => {
64-
customElements.upgrade(el);
65-
});
63+
document.querySelectorAll(WEB_COMPONENT_NAME).forEach((el) => customElements.upgrade(el as Node));
6664
}
6765

6866
initializeSkipWidget();

0 commit comments

Comments
 (0)