mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
fixed some old TODOs
This commit is contained in:
@@ -112,7 +112,7 @@ self.onfetch = event => {
|
||||
const req = event.request;
|
||||
if (req.method !== 'GET') return;
|
||||
const url = new URL(req.url);
|
||||
const dlmatch = DOWNLOAD_URL.exec(url.pathname); // TODO use #hashkey
|
||||
const dlmatch = DOWNLOAD_URL.exec(url.pathname);
|
||||
if (dlmatch) {
|
||||
event.respondWith(decryptStream(dlmatch[1]));
|
||||
} else if (VERSIONED_ASSET.test(url.pathname)) {
|
||||
|
||||
Reference in New Issue
Block a user