summaryrefslogtreecommitdiff
path: root/assets/client.js
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-06-05 20:43:32 -0300
committerstale <redkugelblitzin@gmail.com>2022-06-05 20:43:32 -0300
commite00fa116c51e728e341e48e4c5f9f09cf4d416fc (patch)
tree9dc60cd8c915ee0637ce73b765937c36cbf0fbb0 /assets/client.js
parentaeb7beb3f9b154f4aefbaa1c08d822ed572461fb (diff)
code cleanup, floodfill algo changed to iterative
Diffstat (limited to 'assets/client.js')
-rw-r--r--assets/client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/client.js b/assets/client.js
index 14e95f0..33ad796 100644
--- a/assets/client.js
+++ b/assets/client.js
@@ -11,7 +11,7 @@ window.room = {
};
window.info_elem = document.getElementById("miscinfo");
window.identform = document.getElementById("identform");
-window.statusline = document.getElementById("statusline");
+window.statusline = document.getElementsByClassName("statusline")[0];
window.bcont_elem = document.getElementById("board-container");
window.board_elem = document.getElementById("board");
window.cursor_frame = document.getElementById("cursor-frame");
@@ -34,7 +34,7 @@ function join() {
room.socket = connect();
statusline.style.display = "flex";
}
-function new_ident_btn() {
+function clear_ident() {
localStorage.removeItem("identity");
document.location.reload();
}