fixed some old TODOs

This commit is contained in:
Danny Coates 2018-12-18 13:55:46 -08:00
parent ac87fdff97
commit 6cc12528b3
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 15 additions and 8 deletions

View file

@ -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)) {