1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-08 00:29:54 +00:00
This commit is contained in:
Laura
2025-08-26 00:22:32 +02:00
parent aa40645836
commit 35a04ebbf5
4 changed files with 8 additions and 4 deletions

View File

@@ -87,9 +87,13 @@
window.notify = notify;
function updateTitle() {
const title = chatTitle || (messages.length ? "New Chat" : "");
$title.classList.toggle("hidden", !messages.length);
$titleText.textContent = chatTitle || (messages.length ? "New Chat" : "");
$titleText.textContent = title;
document.title = title || "whiskr";
storeValue("title", chatTitle);
}