From 0946abd0bc866ca1f0c073eb45e8e2c7822e4e44 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Thu, 23 Jul 2026 14:05:13 -0700 Subject: updates deps and svelte config --- src/lib/component/Social.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lib/component/Social.svelte') 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 @@
{#each mastodonPostMedia as media} {#if videoRegex.test(media)} - + -- cgit v1.2.3