fix: HTMLElement is not defined
This commit is contained in:
parent
39a5cb4a9b
commit
d8bf0e69a0
1 changed files with 6 additions and 5 deletions
|
@ -1,9 +1,5 @@
|
||||||
---
|
---
|
||||||
import Comments from "../../../assets/js/oom-comments.js";
|
|
||||||
import "../../../assets/css/oom-styles.css";
|
import "../../../assets/css/oom-styles.css";
|
||||||
|
|
||||||
//Register the custom element with your desired name
|
|
||||||
customElements.define("oom-comments", Comments);
|
|
||||||
const { mastodonLink, bskyLink } = Astro.props;
|
const { mastodonLink, bskyLink } = Astro.props;
|
||||||
---
|
---
|
||||||
<oom-comments
|
<oom-comments
|
||||||
|
@ -12,3 +8,8 @@ const { mastodonLink, bskyLink } = Astro.props;
|
||||||
cache="600" >
|
cache="600" >
|
||||||
No comments yet
|
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>
|
Loading…
Add table
Add a link
Reference in a new issue