fix featured icons not loading (#1552)
Co-authored-by: Preston <freetubeapp@protonmail.com>
This commit is contained in:
parent
539b084217
commit
11bb81795d
|
@ -259,6 +259,14 @@ export default Vue.extend({
|
|||
this.thumbnailUrl = response.authorThumbnails[2].url
|
||||
this.channelDescription = autolinker.link(response.description)
|
||||
this.relatedChannels = response.relatedChannels.items
|
||||
this.relatedChannels.forEach(relatedChannel => {
|
||||
relatedChannel.authorThumbnails.map(thumbnail => {
|
||||
if (!thumbnail.url.includes('https')) {
|
||||
thumbnail.url = `https:${thumbnail.url}`
|
||||
}
|
||||
return thumbnail
|
||||
})
|
||||
})
|
||||
|
||||
if (response.authorBanners !== null) {
|
||||
const bannerUrl = response.authorBanners[response.authorBanners.length - 1].url
|
||||
|
|
Loading…
Reference in New Issue