asdkjlfhlaskjdhf

This commit is contained in:
2026-03-11 01:20:31 -04:00
parent 2fea81d46b
commit 3160d96c15
5 changed files with 25 additions and 58 deletions

View File

@@ -29,10 +29,8 @@ document.addEventListener("DOMContentLoaded", () => {
primeNotifications();
const defaultName = "Anon";
const MAX_NAME_LEN = 15; // server limit is NAME_MAX_LENGTH-1 (15 chars)
const MAX_NAME_LEN = 15;
// Fetch WebSocket domain from the client server so deployments can point to a
// remote websocket host without rebuilding the bundle.
fetch("/ws-domain")
.then((res) => res.json())
.then(({ domain }) => domain || "")
@@ -118,7 +116,8 @@ document.addEventListener("DOMContentLoaded", () => {
input.focus();
});
// Global Escape handler: clear reply context, focus input, and clear focused message.
// Global Escape handler: clear reply context, focus input, and clear
// focused message.
document.addEventListener("keydown", (e) => {
if (e.key === "Escape") {
setReplyTo(null);