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!
Procházet zdrojové kódy

Small but important fix computing file blocks.

pull/1/head
Stanislaw Adaszewski před 4 roky
rodič
revize
fc2b9a91a4
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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;


Načítá se…
Zrušit
Uložit