minimal streamplace frontend
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update title on watch page

Juliet 5c2a3e58 865995e4

+10 -3
+2 -2
index.html
··· 5 5 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> 6 6 <link rel="icon" href="/favicon.svg" type="image/svg+xml" /> 7 7 <meta name="theme-color" content="#0a0a0b" /> 8 - <meta property="og:title" content="stream.place" /> 8 + <meta property="og:title" content="streamplace" /> 9 9 <meta property="og:type" content="website" /> 10 10 <meta property="og:description" content="Live streaming on the atmosphere" /> 11 - <title>stream.place</title> 11 + <title>streamplace</title> 12 12 <link rel="preconnect" href="https://fonts.bunny.net" /> 13 13 <link href="https://fonts.bunny.net/css?family=dm-sans:400,500,600,700" rel="stylesheet" /> 14 14 <script src="/src/index.tsx" type="module"></script>
+8 -1
src/pages/Watch.tsx
··· 1 1 import { useParams } from "@solidjs/router"; 2 - import { createResource, createSignal, Show } from "solid-js"; 2 + import { createEffect, createResource, createSignal, onCleanup, Show } from "solid-js"; 3 3 4 4 import { Chat } from "../components/Chat"; 5 5 import { VideoPlayer } from "../components/VideoPlayer"; ··· 20 20 } 21 21 }, 22 22 ); 23 + 24 + createEffect(() => { 25 + document.title = `@${params.handle} - streamplace`; 26 + onCleanup(() => { 27 + document.title = "streamplace"; 28 + }); 29 + }); 23 30 24 31 const [streamInfo, setStreamInfo] = createSignal<StreamInfo | undefined>(); 25 32 const [viewerCount, setViewerCount] = createSignal(0);