socket: table should have decoded dicerolls on first connect

This commit is contained in:
Iris Lightshard 2023-02-17 23:41:00 -07:00
parent 8804908923
commit 849c27b7cf
Signed by: nilix
GPG key ID: 3B7FBC22144E6398

View file

@ -33,7 +33,7 @@ function dial() {
data.diceRolls.forEach(r=>{ data.diceRolls.forEach(r=>{
r.roll = Uint8Array.from(atob(r.roll), c => c.charCodeAt(0)) r.roll = Uint8Array.from(atob(r.roll), c => c.charCodeAt(0))
}) })
table = JSON.parse(e.data); table = data;
} else { } else {
// UPDATE THE TABLE! // UPDATE THE TABLE!
} }