1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 20:15:55 +02:00

fix(frontend): Twitch クリップの埋め込みが開けない問題を修正 (#16102)

This commit is contained in:
Soli
2025-05-29 11:43:08 +09:00
committed by GitHub
parent 825c337cf4
commit ed8a95f5bc
2 changed files with 2 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ export function transformPlayerUrl(url: string): string {
const urlParams = new URLSearchParams(urlObj.search);
if (urlObj.hostname === 'player.twitch.tv') {
if (urlObj.hostname === 'player.twitch.tv' || urlObj.hostname === 'clips.twitch.tv') {
// TwitchはCSPの制約あり
// https://dev.twitch.tv/docs/embed/video-and-clips/
urlParams.set('parent', hostname);