From 53fc8ffb924079e22f1f5c0d78b6126130d99593 Mon Sep 17 00:00:00 2001 From: EthanThatOneKid <31261035+EthanThatOneKid@users.noreply.github.com> Date: Sun, 31 Mar 2024 15:34:31 -0700 Subject: [PATCH] Update script.js --- static/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/script.js b/static/script.js index bd34b9d..3fb3bc0 100644 --- a/static/script.js +++ b/static/script.js @@ -14,6 +14,10 @@ document.addEventListener("DOMContentLoaded", () => { }); }); +globalThis.onbeforeunload = () => { + return ""; +}; + async function transform(options) { const transformation = await esbuild.transform(options.code, { loader: "tsx",