fix: HTMLElement is not defined

This commit is contained in:
草师傅 2025-07-22 10:47:22 +08:00
parent 39a5cb4a9b
commit d8bf0e69a0
Signed by: gb
GPG key ID: 43330A030E2D6478

View file

@ -1,9 +1,5 @@
---
import Comments from "../../../assets/js/oom-comments.js";
import "../../../assets/css/oom-styles.css";
//Register the custom element with your desired name
customElements.define("oom-comments", Comments);
const { mastodonLink, bskyLink } = Astro.props;
---
<oom-comments
@ -11,4 +7,9 @@ const { mastodonLink, bskyLink } = Astro.props;
bluesky={bskyLink}
cache="600" >
No comments yet
</oom-comments>
</oom-comments>
<script>
import Comments from "../../../assets/js/oom-comments.js";
//Register the custom element with your desired name
customElements.define("oom-comments", Comments);
</script>