set tab title when record contains a title

This commit is contained in:
Charlotte Som 2025-06-04 23:18:20 +01:00
parent a7259f9f88
commit 1256eb1b59

View file

@ -64,7 +64,10 @@ const main = async () => {
</video>
);
if (video.title) player.append(<h1>{video.title}</h1>);
if (video.title) {
player.append(<h1>{video.title}</h1>);
document.title = `${video.title} | video.cerulea.blue`;
}
if (video.description)
player.append(<p className="description">{video.description}</p>);
};