forked from rDrama/rDrama
fix pagetitle for chat
parent
1581cb6712
commit
5a1bc77ed5
|
@ -33168,7 +33168,8 @@
|
||||||
const alertedWhileAway = notifications > 0 && !focused;
|
const alertedWhileAway = notifications > 0 && !focused;
|
||||||
const pathIcon = alertedWhileAway ? "alert" : "icon";
|
const pathIcon = alertedWhileAway ? "alert" : "icon";
|
||||||
favicon.href = escape(`/assets/images/${siteName}/${pathIcon}.webp?v=3`);
|
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]);
|
}, [notifications, focused]);
|
||||||
return /* @__PURE__ */ import_react15.default.createElement(ChatContext.Provider, {
|
return /* @__PURE__ */ import_react15.default.createElement(ChatContext.Provider, {
|
||||||
value: context
|
value: context
|
||||||
|
|
Loading…
Reference in New Issue