mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Update img_verify
This commit is contained in:
@@ -50,8 +50,10 @@ function match_url(u: URL) {
|
||||
/**@ts-ignore */
|
||||
self.addEventListener("fetch", async (e: FetchEvent) => {
|
||||
const u = new URL(e.request.url);
|
||||
if (u.origin === self.location.origin && u.pathname.startsWith("/api/")) {
|
||||
return;
|
||||
if (u.origin === self.location.origin) {
|
||||
if (u.pathname.startsWith("/api/")) return;
|
||||
if (u.pathname.startsWith("/file/")) return;
|
||||
if (u.pathname.startsWith("/thumbnail/")) return;
|
||||
}
|
||||
if (!inited) await deleteOldCaches();
|
||||
const r = e.request;
|
||||
|
||||
Reference in New Issue
Block a user