Skip to content

Commit

Permalink
syntax corr
Browse files Browse the repository at this point in the history
  • Loading branch information
vvsviridov committed Apr 25, 2021
1 parent 3b984ea commit 836cd35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function downloadFile(url, fileName, contentType) {
xhr.onloadend = () => checkDownloadStatus(xhr.status)
xhr.onprogress = (e) => setDownloadProgress(e)
xhr.onerror = () => showError()
xhr.on
xhr.open('GET', url)
xhr.send()
}
Expand All @@ -96,7 +95,6 @@ function setUploadProgress({ bytesTransferred, totalBytes }) {
let progress = ~~(bytesTransferred / totalBytes * 100)
root.style.setProperty('--progress', progress)
upload.setAttribute('progress', progress + '%')
// download.setAttribute('progress', progress + '%')
}


Expand Down

0 comments on commit 836cd35

Please sign in to comment.