From 5a1bc77ed5345ac310a501539714251efe2dd837 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 20 Jan 2023 06:54:27 +0200 Subject: [PATCH] fix pagetitle for chat --- files/assets/js/chat_done.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/assets/js/chat_done.js b/files/assets/js/chat_done.js index ef76ec3d1..9e5ca5699 100644 --- a/files/assets/js/chat_done.js +++ b/files/assets/js/chat_done.js @@ -33168,7 +33168,8 @@ const alertedWhileAway = notifications > 0 && !focused; const pathIcon = alertedWhileAway ? "alert" : "icon"; favicon.href = escape(`/assets/images/${siteName}/${pathIcon}.webp?v=3`); - title.innerHTML = alertedWhileAway ? `[+${notifications}] Chat` : "Chat"; + const pagetitle = location.pathname == '/admin/chat' ? 'Admin Chat' : 'Chat'; + title.innerHTML = alertedWhileAway ? `[+${notifications}] ${pagetitle}` : pagetitle; }, [notifications, focused]); return /* @__PURE__ */ import_react15.default.createElement(ChatContext.Provider, { value: context