Change /video/ route to /run/, add embed support

This commit is contained in:
CallMeVerity
2026-06-04 22:42:39 +01:00
parent b9190a9b44
commit 31e110af5f
5 changed files with 177 additions and 24 deletions
+7 -1
View File
@@ -66,8 +66,14 @@ export default function VideoDetail() {
useEffect(() => {
if (!id) return;
fetchVideo(id)
.then(setVideo)
.then((v) => {
setVideo(v);
document.title = `${getMapDisplayName(v.mapName)}${v.playerName} · surf.nathan.rip`;
})
.catch((err) => setError(err.message));
return () => {
document.title = "surf.nathan.rip";
};
}, [id]);
if (error) {