asdkjlfhlaskjdhf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user