fix: 🐛 hide episode behing http on https env
This commit is contained in:
parent
3da2da7e98
commit
5d20fb5dd3
@ -177,6 +177,14 @@ export default {
|
|||||||
},
|
},
|
||||||
filteredEpisodes() {
|
filteredEpisodes() {
|
||||||
return this.episodes.filter((episode) => {
|
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)) {
|
if (!this.filters.listened && this.hasEnded(episode)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user