began adding capability flags
This commit is contained in:
parent
ebbb174c66
commit
d14aeb29e9
12 changed files with 236 additions and 100 deletions
|
@ -75,7 +75,7 @@ async function decryptStream(id) {
|
|||
|
||||
self.onfetch = event => {
|
||||
const req = event.request;
|
||||
if (req.url.includes('/api/download')) {
|
||||
if (/\/api\/download\/[A-Fa-f0-9]{4,}/.test(req.url)) {
|
||||
const id = req.url.split('/')[5];
|
||||
event.respondWith(decryptStream(id));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue