diff --git a/src/components/ChatApp.tsx b/src/components/ChatApp.tsx index 53add6c..e3d7eae 100644 --- a/src/components/ChatApp.tsx +++ b/src/components/ChatApp.tsx @@ -751,7 +751,6 @@ export default function ChatApp({ <> {/* NORMAL SPLIT MODE */} - {/* YouTube live chat – top 50% when a linked channel has a video ID */} {linkedYoutubeUrl && showYoutubeSection && (
{youtubeVideoId ? ( @@ -981,7 +980,6 @@ export default function ChatApp({
)} - {/* Twitch chat – bottom 50% (or full height if no YouTube link) */}
{ const headers = { "Content-Type": "application/json" }; diff --git a/src/pages/api/youtube-live.ts b/src/pages/api/youtube-live.ts index 0db9e5b..0006dc5 100644 --- a/src/pages/api/youtube-live.ts +++ b/src/pages/api/youtube-live.ts @@ -213,8 +213,7 @@ async function resolveChannelId( }); return id; } - - // /c/CustomName or /user/Username – try forUsername first, then search + if (pathname.startsWith("/c/") || pathname.startsWith("/user/")) { const name = pathname.split("/")[2]; const id = await resolveByUsernameOrSearch(name, apiKey); @@ -256,7 +255,6 @@ async function resolveHandleViaApi( handle: string, apiKey: string, ): Promise { - // YouTube Data API v3 – channels.list with forHandle const res = await fetch( `https://www.googleapis.com/youtube/v3/channels?part=id&forHandle=${encodeURIComponent(handle)}&key=${apiKey}`, ); diff --git a/src/styles/YouTubeLinker.css b/src/styles/YouTubeLinker.css index 35fc08c..44ad480 100644 --- a/src/styles/YouTubeLinker.css +++ b/src/styles/YouTubeLinker.css @@ -1,5 +1,3 @@ -/* YouTubeLinker modal – mirrors WatchlistManager styles */ - .ytlinker-overlay { position: fixed; inset: 0;