diff --git a/app/js/playerHandler.js b/app/js/playerHandler.js index 9f07a64..8bc6a66 100644 --- a/app/js/playerHandler.js +++ b/app/js/playerHandler.js @@ -99,7 +99,7 @@ async function dragBarStart() { let currentTime; function updateBar(progressPercent) { - if (document.location.hash = "#player") { + if (document.location.hash == "#player") { currentTime = video.duration * progressPercent / 100 progress.style.setProperty("--progress", progressPercent + "%"); thumb.style.setProperty("--progress", progressPercent + "%"); diff --git a/app/js/torrentHandler.js b/app/js/torrentHandler.js index 9419236..1f323fb 100644 --- a/app/js/torrentHandler.js +++ b/app/js/torrentHandler.js @@ -166,7 +166,7 @@ function postDownload(url, file) { } } function onProgress() { - if (document.location.hash = "#player" && client.torrents[0]) { + if (document.location.hash == "#player" && client.torrents[0]) { player.style.setProperty("--download", client.torrents[0].progress * 100 + "%"); peers.textContent = client.torrents[0].numPeers downSpeed.textContent = prettyBytes(client.torrents[0].downloadSpeed) + '/s'