add: cache breaker "build code"
This commit is contained in:
parent
25579c5195
commit
9778230e3f
6 changed files with 32 additions and 22 deletions
|
@ -97,8 +97,10 @@ globalThis.init_editor = () => {
|
|||
});
|
||||
|
||||
window.addEventListener("beforeunload", (e) => {
|
||||
e.preventDefault();
|
||||
return null;
|
||||
if (!globalThis.ALLOW_LEAVE) {
|
||||
e.preventDefault();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue