blob: 0e41ec02cc69b665892a124775f3c38af2fa9a6a [file] [log] [blame]
addEventListener("fetch", async (e) => {
if (e.request.url.indexOf("module-meta-url.js") !== -1) {
let blob = new Blob([`globalThis.metaURLs.push(import.meta.url);`], {
type: "application/javascript"
});
e.respondWith(new Response(blob, {
status: 200,
}));
return;
}
});