This fixes the service worker not registering, and the config for UV
This commit is contained in:
MotorTruck1221 2023-12-21 01:22:57 -07:00
parent e1064e82ad
commit 4f67411488
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
importScripts("/ultra/ultra.bundle.js");
importScripts("/ultra/ultra.config.js");
importScripts(__uv$config.sw || "/ultra/ultra.sw.js");
importScripts("/uv/uv.bundle.js");
importScripts("/uv/uv.config.js");
importScripts(__uv$config.sw || "/uv/uv.sw.js");
const sw = new UVServiceWorker();

View file

@ -1,8 +1,8 @@
self.__uv$config = {
prefix: "/service/",
prefix: "/go/",
bare: "/bare/",
encodeUrl: Ultraviolet.codec.xor.encode,
decodeUrl: Ultraviolet.codec.xor.decode,
encodeUrl: Ultraviolet.codec.plain.encode,
decodeUrl: Ultraviolet.codec.plain.decode,
handler: "/uv/uv.handler.js",
client: "/uv/uv.client.js",
bundle: "/uv/uv.bundle.js",