From 938ed3b3843b6f46b1f8ef34c897708348149bcb Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Mon, 11 Aug 2025 11:27:30 -0700 Subject: [PATCH] delete player from game maybe --- static/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/script.js b/static/script.js index 36e479b..189457c 100644 --- a/static/script.js +++ b/static/script.js @@ -465,6 +465,8 @@ window.addEventListener("DOMContentLoaded", function() { this.ws.onclose = () => { console.log("leaving game...") + console.log(this.pageData) + delete this.players[this.pageData.username] } }