mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
extracted blobSlicer, fixed download cancel tests
This commit is contained in:
@@ -15,8 +15,11 @@ self.addEventListener('activate', event => {
|
||||
});
|
||||
|
||||
async function decryptStream(id) {
|
||||
const file = map.get(id);
|
||||
if (!file) {
|
||||
return new Response(null, { status: 400 });
|
||||
}
|
||||
try {
|
||||
const file = map.get(id);
|
||||
const keychain = new Keychain(file.key, file.nonce);
|
||||
if (file.requiresPassword) {
|
||||
keychain.setPassword(file.password, file.url);
|
||||
|
||||
Reference in New Issue
Block a user