rssTea
rssTea copied to clipboard
feature request
loving your work... I think it would be great if you could close the podcast when finished listening or moving to another page.
People prefer podcasts playing in the background so I won't change the default. However if you want to implement this in your forked repo just add this code to base.html
<script>
document.addEventListener('visibilitychange', function() {
if (document.hidden) {
let audios = document.querySelectorAll('audio');
audios.forEach(function(audio) {
audio.pause();
});
}
});
</script>
Thanks much appreciated