fix pagetitle for chat

pull/90/head
Aevann 2023-01-20 06:54:27 +02:00
parent 1581cb6712
commit 5a1bc77ed5
1 changed files with 2 additions and 1 deletions

View File

@ -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