diff --git a/src/chess_pressure/static/app.js b/src/chess_pressure/static/app.js
index ee95471..9318cbd 100644
--- a/src/chess_pressure/static/app.js
+++ b/src/chess_pressure/static/app.js
@@ -417,37 +417,95 @@
return "My game";
}
- function saveCurrentGame() {
+ function currentSavedName() {
+ if (!currentSavedId) return null;
+ const g = getSavedGames().find((x) => x.id === currentSavedId);
+ return g ? g.name : null;
+ }
+
+ // Promise-based in-app modal. Native prompt()/confirm() are unreliable here —
+ // browsers suppress them when the page isn't the active tab — so all save/delete
+ // prompts go through a real
+
+
+
+
@@ -139,6 +164,6 @@
-
+