Skip to content

Commit

Permalink
fix(/anime): title will default to english
Browse files Browse the repository at this point in the history
  • Loading branch information
Jabster28 committed Aug 24, 2020
1 parent 03ad6ed commit 3616020
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pages/Anime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,15 @@
>
</div>
<div class="col-5">
<h2>{{ anime.title }}</h2>
<div v-if="anime.title_english && anime.title_english != anime.title">
<h2>{{ anime.title_english }}</h2>

<h6 class="disabled">{{ anime.title_english }}</h6>
<h6 class="disabled">{{ anime.title }}</h6>
</div>



<h2 v-else>{{ anime.title }}</h2>
<p class="text-justify">{{ anime.synopsis }}</p>
<q-card class="q-pa-md q-my-lg">
<h5>
Expand Down Expand Up @@ -349,7 +355,7 @@ export default Vue.extend({
// @ts-ignore
this.player = new Plyr('#player');
}, 1000);
document.title = `${this.anime.title} | Mirai`;
document.title = `${this.anime.title_english || this.anime.title} | Mirai`;
/* @ts-ignore */
let cache = this.$q.localStorage.getItem('cache');
/* @ts-ignore */
Expand Down

1 comment on commit 3616020

@vercel
Copy link

@vercel vercel bot commented on 3616020 Aug 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.