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!
Przeglądaj źródła

Small but important fix computing file blocks.

master
rodzic
commit
fc2b9a91a4
2 zmienionych plików z 2 dodań i 2 usunięć
  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 Wyświetl plik

@@ -69,7 +69,7 @@ class WBRootDirWrapper {
for (let i = start; i < end; i++) {
const loc = stm[i];
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;
}), file[1] ];


+ 1
- 1
frontend/src/js/page/wb-download-page.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz