break: update ServerMessage model
- rename MaxSession to TotalSession (and JSON struct tags)
🤖
This commit is contained in:
parent
314e71acba
commit
f9b2a76894
5 changed files with 23 additions and 23 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue