Skip to content

Commit

Permalink
Trim whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mradavi committed Feb 7, 2024
1 parent 7f3de02 commit c4ba64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swift_browser_ui_frontend/wasm/js/crypt-post-downworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ function decryptChunk(container, path, enChunk) {
function getFileSize(response, key) {
// Use encrypted size as the total file size if the file can't be decrypted
const ensize = parseInt(response.headers.get("Content-Length"));
return key !=0 ?
return key !=0 ?
(Math.floor(ensize / 65564) * 65536) +
(ensize % 65564 > 0 ? ensize % 65564 - 28 : 0) :
ensize;
ensize;
}

function startProgressInterval() {
Expand Down

0 comments on commit c4ba64a

Please sign in to comment.