@titaniumnetwork-dev/ultraviolet
Advanced tools
Changelog
v3.1.2
uv.route()
which allows the service worker to easily detect if the worker should route this request.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);
})()
);
});
Changelog
v3.0.2
Changelog
v3.0.0