fix title in manga page

This commit is contained in:
Daniel Bulant 2021-08-06 21:04:41 +02:00 committed by GitHub
parent 82e020452b
commit fbd470a8db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,8 @@
$: manga = scoped.manga;
var relationships = scoped.mangaRelationships;
$: relationships = scoped.mangaRelationships;
var title = manga.title.en || manga.title.jp || Object.values(manga.title)[0];
$: title = manga.title.en || manga.title.jp || Object.values(manga.title)[0];
async function getMangaChapters(id) {
const data = await request("manga/" + id + "/feed?limit=500&translatedLanguage[]=en");
@ -191,12 +193,12 @@
<svelte:window on:beforeUnload={beforeUnload} />
<svelte:head>
<title>Chapters of {manga.title.en}</title>
<meta name="description" value="Read {manga.title.en} online, or download it as EPUB or CBZ file. Free of charge and ads." />
<title>Chapters of {title}</title>
<meta name="description" value="Read {title} online, or download it as EPUB or CBZ file. Free of charge and ads." />
</svelte:head>
<main>
<h1>{manga.title.en}</h1>
<h1>{title}</h1>
<div class="flex">
<div class="linklist">
@ -356,4 +358,4 @@
.state.active .progress {
background: rgb(140, 209, 255);
}
</style>
</style>