[FA-misc] Page title updates #49
@@ -74,6 +74,8 @@
|
||||
|
||||
if (result.data?.chapter) {
|
||||
chapter = result.data.chapter;
|
||||
// Update the page title with chapter info
|
||||
document.title = `${chapter.novelName} - ${chapter.order}`;
|
||||
} else {
|
||||
error = 'Chapter not found';
|
||||
}
|
||||
|
||||
@@ -215,6 +215,7 @@
|
||||
const nodes = result.data?.novels?.nodes;
|
||||
if (nodes && nodes.length > 0) {
|
||||
novel = nodes[0];
|
||||
document.title = novel.name;
|
||||
} else {
|
||||
error = 'Novel not found';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user