mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-14 04:20:00 -04:00
10 lines
334 B
JavaScript
10 lines
334 B
JavaScript
importScripts("/uv/uv.bundle.js");
|
|
importScripts("/uv/uv.config.js");
|
|
importScripts(__uv$config.sw || "/uv/uv.sw.js");
|
|
|
|
const sw = new UVServiceWorker();
|
|
|
|
self.addEventListener("fetch", (event) => {
|
|
if (event.request.url.startsWith(location.origin + __uv$config.prefix))
|
|
return event.respondWith(sw.fetch(event));
|
|
});
|