mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-16 05:00:02 -04:00
17 lines
448 B
JavaScript
17 lines
448 B
JavaScript
importScripts("../epoxy/index.js");
|
|
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 (event.request.url.startsWith(location.origin + __uv$config.prefix)) {
|
|
return await uv.fetch(event);
|
|
}
|
|
return await fetch(event.request);
|
|
})()
|
|
);
|
|
});
|