Use mora instead of characters, e.g. しゅ

This commit is contained in:
Elnu 2023-04-14 18:51:01 -07:00
parent 4076a4c556
commit 96b97ca820
3 changed files with 55 additions and 19 deletions

View file

@ -25,7 +25,7 @@ ws.onmessage = e => {
case "word":
let waiting = data.author === id;
displayWord(data.word, true);
input.placeholder = waiting ? "Waiting for other players..." : `${data.next_char}`;
input.placeholder = waiting ? "Waiting for other players..." : `${data.next_mora}`;
input.disabled = waiting;
if (!waiting) input.focus();
break;