set tab title when record contains a title
This commit is contained in:
parent
a7259f9f88
commit
1256eb1b59
1 changed files with 4 additions and 1 deletions
|
|
@ -64,7 +64,10 @@ const main = async () => {
|
||||||
</video>
|
</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)
|
if (video.description)
|
||||||
player.append(<p className="description">{video.description}</p>);
|
player.append(<p className="description">{video.description}</p>);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue