diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-07 12:56:27 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-07 12:56:27 +0900 |
| commit | eaba9eb775f94ed8a995b849779c0c1504dd1c41 (patch) | |
| tree | 0526869509b70fb750a82621c29edb7fc8a532f4 /src/components | |
| parent | 25d33fad4afb795681d428bb52107b509816a95e (diff) | |
events: 共有ボタンをXとコピーの2つにする
LINEのボタンとアイコンを外した。
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ScheduleTable.astro | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/components/ScheduleTable.astro b/src/components/ScheduleTable.astro index 7cbc751..b636171 100644 --- a/src/components/ScheduleTable.astro +++ b/src/components/ScheduleTable.astro @@ -61,7 +61,6 @@ const dateHtml = (html: string) => const KINDS: { kind: string; label: string }[] = [ { kind: 'x', label: 'Xでシェア' }, - { kind: 'line', label: 'LINEで送る' }, { kind: 'copy', label: '文面をコピー' }, ]; @@ -126,16 +125,6 @@ const dateHtml = (html: string) => return; } - if (kind === 'line') { - // LINEは文面とURLの両方を渡せる - window.open( - `https://social-plugins.line.me/lineit/share?text=${encodeURIComponent(text)}&url=${encodeURIComponent(url)}`, - '_blank', - 'noopener', - ); - return; - } - // コピー:Instagram・Facebookなど、文面を直接渡せないSNSにも貼れる try { await navigator.clipboard.writeText(`${text}\n${url}`); |
