break: update ServerMessage model

- rename MaxSession to TotalSession (and JSON struct tags)

🤖
This commit is contained in:
Sebastian Mark 2024-10-20 23:20:23 +02:00
parent 314e71acba
commit f9b2a76894
5 changed files with 23 additions and 23 deletions

View file

@ -41,11 +41,11 @@
var data = JSON.parse(event.data);
var mode = data.mode;
var session = data.session;
var maxSession = data.max_session;
var totalSession = data.total_sessions;
var timeLeft = data.time_left;
document.getElementById("timer").innerText =
mode + " Session " + session + "/" + maxSession + ": " + formatTime(timeLeft);
mode + " Session " + session + "/" + totalSession + ": " + formatTime(timeLeft);
};
ws.onclose = function () {