Replace innerText with textContent

This commit is contained in:
2018-06-28 15:30:24 +09:00
parent 00678cf6a4
commit 050355d8ae
9 changed files with 26 additions and 25 deletions

View File

@ -201,7 +201,7 @@ export default class AudioPlayer {
// Remove title
this.trackLink.href = ""
this.trackLink.innerText = ""
this.trackLink.textContent = ""
// Hide anime info
this.animeLink.href = ""
@ -287,7 +287,7 @@ export default class AudioPlayer {
let trackInfoResponse = await fetch("/api/soundtrack/" + trackId)
let track = await trackInfoResponse.json()
this.trackLink.href = "/soundtrack/" + track.id
this.trackLink.innerText = track.title.canonical || track.title.native
this.trackLink.textContent = track.title.canonical || track.title.native
let animeId = ""