Fix firefox, thanks @ading2210

This commit is contained in:
MotorTruck1221 2024-11-08 01:24:25 -07:00
parent 3d57ffe3c2
commit 70bca2737c
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -5,6 +5,14 @@ importScripts(__uv$config.sw || "/uv/uv.sw.js");
const uv = new UVServiceWorker(); const uv = new UVServiceWorker();
const ww = new WorkerWare({ debug: false }); const ww = new WorkerWare({ debug: false });
//me when Firefox (thanks vk6)
if (navigator.userAgent.includes("Firefox")) {
Object.defineProperty(globalThis, "crossOriginIsolated", {
value: true,
writable: true
});
}
//where we handle our plugins!!! //where we handle our plugins!!!
self.addEventListener("message", function (event) { self.addEventListener("message", function (event) {
console.log(event.data); console.log(event.data);