Fixed banner background path.

This commit is contained in:
DebaucheryLibrarian
2021-02-24 03:23:03 +01:00
parent fe3f820d33
commit 6b2a66cf72
6 changed files with 4 additions and 3 deletions

View File

@@ -222,8 +222,8 @@ async function fetchRelease() {
}
function bannerBackground() {
return (this.release.poster && `url(/media/${this.release.poster.thumbnail})`)
|| (this.release.covers.length > 0 && `url(/media/${this.release.covers[0].thumbnail})`);
return (this.release.poster && this.getBgPath(this.release.poster, 'thumbnail'))
|| (this.release.covers.length > 0 && this.getBgPath(this.release.covers[0], 'thumbnail'));
}
function pageTitle() {