This commit is contained in:
2026-03-11 01:09:12 -04:00
parent dd60be6d2c
commit 064e195f2a
4 changed files with 84 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import {
} from "./data.js";
import { renderChat } from "./render.js";
import { initWebSocket } from "./wsModule.js";
import { primeNotifications } from "./notifications.js";
document.addEventListener("DOMContentLoaded", () => {
const chat = document.getElementById("chat");
@@ -25,6 +26,7 @@ document.addEventListener("DOMContentLoaded", () => {
chat.style.display = "";
inputContainer.style.display = "flex";
primeNotifications();
const defaultName = "Anon";
const MAX_NAME_LEN = 15; // server limit is NAME_MAX_LENGTH-1 (15 chars)