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