Skip to content

Commit

Permalink
Изменяет поведение при выборе темы подкаста (#356)
Browse files Browse the repository at this point in the history
* Изменяет поведение при выборе темы подкаста

* Изменяет поведение при выборе темы подкаста
  • Loading branch information
zhrk authored Nov 8, 2023
1 parent f4e9f09 commit a9be963
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/scripts/modules/podcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,9 @@ function handlePassedTimecode() {
function initAnchor() {
window.addEventListener('hashchange', () => {
handlePassedTimecode();
playAudio();
});
}

function playAudio() {
if (player.paused) {
player.play();
}
}

if (player) {
if (player.networkState === HTMLMediaElement.NETWORK_LOADING) {
player.addEventListener('loadedmetadata', handlePassedTimecode);
Expand Down

0 comments on commit a9be963

Please sign in to comment.