fix: 🐛 hide episode behing http on https env
repod / xml (push) Successful in 12s Details
repod / php (push) Successful in 43s Details
repod / nodejs (push) Successful in 1m26s Details
repod / release (push) Has been skipped Details

This commit is contained in:
Michel Roux 2024-05-06 12:56:26 +00:00
parent 3da2da7e98
commit 5d20fb5dd3
1 changed files with 8 additions and 0 deletions

View File

@ -177,6 +177,14 @@ export default {
},
filteredEpisodes() {
return this.episodes.filter((episode) => {
// Hide episode that can't be read
if (
window.location.protocol === 'https:' &&
episode.url.startsWith('http:/')
) {
return false
}
if (!this.filters.listened && this.hasEnded(episode)) {
return false
}