fix(frontend): Twitch クリップの埋め込みが開けない問題を修正 (#16102)
This commit is contained in:
parent
825c337cf4
commit
ed8a95f5bc
|
@ -54,6 +54,7 @@
|
||||||
- ほとんどの言語のハイライトは問題なく行えますが、互換性の問題により一部の言語が正常にハイライトできなくなる可能性があります。詳しくは https://shiki.style/references/engine-js-compat をご覧ください。
|
- ほとんどの言語のハイライトは問題なく行えますが、互換性の問題により一部の言語が正常にハイライトできなくなる可能性があります。詳しくは https://shiki.style/references/engine-js-compat をご覧ください。
|
||||||
- Fix: "時計"ウィジェット(Clock)において、Transparent設定が有効でも、その背景が透過されない問題を修正
|
- Fix: "時計"ウィジェット(Clock)において、Transparent設定が有効でも、その背景が透過されない問題を修正
|
||||||
- Fix: 一定時間操作がなかったら動画プレイヤーのコントロールを隠すように
|
- Fix: 一定時間操作がなかったら動画プレイヤーのコントロールを隠すように
|
||||||
|
- Fix: Twitchのクリップがプレイヤーで再生できない問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Enhance: チャットルームの最大メンバー数を30人から50人に調整
|
- Enhance: チャットルームの最大メンバー数を30人から50人に調整
|
||||||
|
|
|
@ -15,7 +15,7 @@ export function transformPlayerUrl(url: string): string {
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(urlObj.search);
|
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の制約あり
|
// TwitchはCSPの制約あり
|
||||||
// https://dev.twitch.tv/docs/embed/video-and-clips/
|
// https://dev.twitch.tv/docs/embed/video-and-clips/
|
||||||
urlParams.set('parent', hostname);
|
urlParams.set('parent', hostname);
|
||||||
|
|
Loading…
Reference in New Issue