IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Browse Source

Small but important fix computing file blocks.

pull/1/head
parent
commit
fc2b9a91a4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      frontend/src/js/misc/wb-rootdir-wrapper.js
  2. +1
    -1
      frontend/src/js/page/wb-download-page.js

+ 1
- 1
frontend/src/js/misc/wb-rootdir-wrapper.js View File

@@ -69,7 +69,7 @@ class WBRootDirWrapper {
for (let i = start; i < end; i++) { for (let i = start; i < end; i++) {
const loc = stm[i]; const loc = stm[i];
res.push([ loc[0], Math.max(0, seg[1] - loc[1]), res.push([ loc[0], Math.max(0, seg[1] - loc[1]),
Math.min(loc[2], seg[1] + seg[2] - loc[1]) ]);
Math.min(loc[2] - loc[1], seg[1] + seg[2] - loc[1]) ]);
} }
return res; return res;
}), file[1] ]; }), file[1] ];


+ 1
- 1
frontend/src/js/page/wb-download-page.js View File

@@ -95,7 +95,7 @@ class WBDownloadPage extends Component {
const blk = xhr_1.response.slice(loc[1], loc[2]); const blk = xhr_1.response.slice(loc[1], loc[2]);
// const r = new Response(blk); // const r = new Response(blk);
// r.body.pipeTo(fileStream); // r.body.pipeTo(fileStream);
writer.write(new Uint8Array(blk));
return writer.write(new Uint8Array(blk));
}); });
} }
return prom_1; return prom_1;


Loading…
Cancel
Save