Skip to content

Commit

Permalink
docs: update example code
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jan 19, 2024
1 parent 7a25d3a commit 7763986
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/users/backfeed-based-on-mastodon-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"Mastodon Comments" refers to the [`@oom/mastodon-components`](https://github.com/oom-components/mastodon-comments) library.

```html
<script type="module" src="https://esm.run/@oom/mastodon-comments"></script>
<script type="module">
import Comments from 'https://esm.run/@oom/mastodon-comments'
customElements.define('oom-comments', Comments)
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@oom/mastodon-comments/src/styles.css" />`
<oom-comments src="https://mastodon.gal/@misteroom/110810445656343599">
No comments yet
</oom-comments>
Expand Down

0 comments on commit 7763986

Please sign in to comment.