mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
16 lines
No EOL
344 B
JavaScript
16 lines
No EOL
344 B
JavaScript
importScripts("uv.bundle.js");
|
|
importScripts("uv.config.js");
|
|
importScripts(__uv$config.sw || "uv.sw.js");
|
|
|
|
|
|
const uv = new UVServiceWorker();
|
|
|
|
self.addEventListener("fetch", (event) => {
|
|
event.respondWith(
|
|
(async () => {
|
|
if (uv.route(event)) return await uv.fetch(event);
|
|
|
|
return await fetch(event.request);
|
|
})()
|
|
);
|
|
}); |