mirror of
https://github.com/saicaca/fuwari.git
synced 2026-01-11 14:52:52 +01:00
fix: check whether the component is defined already (#337)
Co-authored-by: Matas <automatasz@users.noreply.github.com> Co-authored-by: Katsuyuki Karasawa <4ranci0ne@gmail.com>
This commit is contained in:
@@ -256,6 +256,7 @@ class TableOfContents extends HTMLElement {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
customElements.define("table-of-contents", TableOfContents);
|
if (!customElements.get("table-of-contents")) {
|
||||||
|
customElements.define("table-of-contents", TableOfContents);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user