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

This commit is contained in:
Michel Roux 2024-05-06 12:56:26 +00:00
parent 3da2da7e98
commit 5d20fb5dd3

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
}