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!
Преглед изворни кода

Small but important fix computing file blocks.

pull/1/head
Stanislaw Adaszewski пре 4 година
родитељ
комит
fc2b9a91a4
2 измењених фајлова са 2 додато и 2 уклоњено
  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 Прегледај датотеку

@@ -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 Прегледај датотеку

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


Loading…
Откажи
Сачувај