From 70bca2737cedc38cde4a4cfeee57c792e2d4a856 Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Fri, 8 Nov 2024 01:24:25 -0700 Subject: [PATCH] Fix firefox, thanks @ading2210 --- public/sw.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/sw.js b/public/sw.js index 78a69f0..4271464 100644 --- a/public/sw.js +++ b/public/sw.js @@ -5,6 +5,14 @@ importScripts(__uv$config.sw || "/uv/uv.sw.js"); const uv = new UVServiceWorker(); 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!!! self.addEventListener("message", function (event) { console.log(event.data);