From 5d20fb5dd38c3a4344446fd0f3c8c663a3a3e7f5 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 6 May 2024 12:56:26 +0000 Subject: [PATCH] fix: :bug: hide episode behing http on https env --- src/components/Feed/Episodes.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/Feed/Episodes.vue b/src/components/Feed/Episodes.vue index 18026d9..348a62f 100644 --- a/src/components/Feed/Episodes.vue +++ b/src/components/Feed/Episodes.vue @@ -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 }