This commit is contained in:
ThaUnknown 2020-10-30 17:27:02 +01:00
parent e092fffe41
commit 62ec278d7d
2 changed files with 2 additions and 2 deletions

View file

@ -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 + "%");

View file

@ -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'