From 849c27b7cf23ad0a417941c508f4fb6b402f51b8 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Fri, 17 Feb 2023 23:41:00 -0700 Subject: [PATCH] socket: table should have decoded dicerolls on first connect --- static/socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/socket.js b/static/socket.js index 5ea04b8..87f4b17 100644 --- a/static/socket.js +++ b/static/socket.js @@ -33,7 +33,7 @@ function dial() { data.diceRolls.forEach(r=>{ r.roll = Uint8Array.from(atob(r.roll), c => c.charCodeAt(0)) }) - table = JSON.parse(e.data); + table = data; } else { // UPDATE THE TABLE! }