v1.0.0: Add version display in footer

This commit is contained in:
Alexej Wolff
2026-05-04 18:56:56 +02:00
parent f73a218745
commit efd2332875
8 changed files with 39 additions and 9 deletions
+3 -3
View File
@@ -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)