[FA-misc] Page title updates #49

Merged
conco merged 1 commits from feature/FA-misc_UIUpdates into master 2025-12-11 12:42:33 +00:00
2 changed files with 3 additions and 0 deletions
Showing only changes of commit 6c10077505 - Show all commits

View File

@@ -74,6 +74,8 @@
if (result.data?.chapter) { if (result.data?.chapter) {
chapter = result.data.chapter; chapter = result.data.chapter;
// Update the page title with chapter info
document.title = `${chapter.novelName} - ${chapter.order}`;
} else { } else {
error = 'Chapter not found'; error = 'Chapter not found';
} }

View File

@@ -215,6 +215,7 @@
const nodes = result.data?.novels?.nodes; const nodes = result.data?.novels?.nodes;
if (nodes && nodes.length > 0) { if (nodes && nodes.length > 0) {
novel = nodes[0]; novel = nodes[0];
document.title = novel.name;
} else { } else {
error = 'Novel not found'; error = 'Novel not found';
} }