diff options
| author | netop://ウィビ <paul@webb.page> | 2026-07-23 14:05:13 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-07-23 14:05:13 -0700 |
| commit | 0946abd0bc866ca1f0c073eb45e8e2c7822e4e44 (patch) | |
| tree | 5f74327da499a274af36691cf739265b82b846d6 /src/lib/component/Social.svelte | |
| parent | cc0677961c237748017fb5946455390af3a50ab6 (diff) | |
| download | homepage-0946abd0bc866ca1f0c073eb45e8e2c7822e4e44.tar.gz homepage-0946abd0bc866ca1f0c073eb45e8e2c7822e4e44.zip | |
updates deps and svelte config
Diffstat (limited to 'src/lib/component/Social.svelte')
| -rw-r--r-- | src/lib/component/Social.svelte | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/component/Social.svelte b/src/lib/component/Social.svelte index 1e469eb..ee15a1a 100644 --- a/src/lib/component/Social.svelte +++ b/src/lib/component/Social.svelte @@ -5,11 +5,11 @@ //// var const videoRegex = /\.(mp4|mov|avi|wmv|flv|mkv|webm|m4v)$/i; - let mastodonLoaded = false; - let mastodonPostContent = ""; - let mastodonPostDate = ""; - let mastodonPostLink = ""; - let mastodonPostMedia: string[] = []; + let mastodonLoaded = $state(false); + let mastodonPostContent = $state(""); + let mastodonPostDate = $state(""); + let mastodonPostLink = $state(""); + let mastodonPostMedia: string[] = $state([]); //// function async function mastodon() { @@ -85,7 +85,7 @@ <div class="media"> {#each mastodonPostMedia as media} {#if videoRegex.test(media)} - <!-- svelte-ignore a11y-media-has-caption --> + <!-- svelte-ignore a11y_media_has_caption --> <video controls> <source src={media}/> </video> |