add: cache breaker "build code"

This commit is contained in:
trisua 2025-07-20 03:24:55 -04:00
parent 25579c5195
commit 9778230e3f
6 changed files with 32 additions and 22 deletions

View file

@ -97,8 +97,10 @@ globalThis.init_editor = () => {
});
window.addEventListener("beforeunload", (e) => {
e.preventDefault();
return null;
if (!globalThis.ALLOW_LEAVE) {
e.preventDefault();
return null;
}
});
};