Change /video/ route to /run/, add embed support
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user