v1.0.0: Add version display in footer
This commit is contained in:
@@ -88,11 +88,11 @@ export default function GamePage() {
|
||||
const handleBeforeUnload = (e: BeforeUnloadEvent) => {
|
||||
if (hasUnsavedChangesRef.current || isLoading) {
|
||||
e.preventDefault();
|
||||
e.returnValue = '';
|
||||
e.returnValue = "";
|
||||
}
|
||||
};
|
||||
window.addEventListener('beforeunload', handleBeforeUnload);
|
||||
return () => window.removeEventListener('beforeunload', handleBeforeUnload);
|
||||
window.addEventListener("beforeunload", handleBeforeUnload);
|
||||
return () => window.removeEventListener("beforeunload", handleBeforeUnload);
|
||||
}, [isLoading]);
|
||||
|
||||
// Throttled streaming update (every 50ms instead of every chunk)
|
||||
|
||||
Reference in New Issue
Block a user