mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 17:32:08 +00:00
XD
This commit is contained in:
parent
e092fffe41
commit
62ec278d7d
2 changed files with 2 additions and 2 deletions
|
|
@ -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 + "%");
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue