enh: temporary-chat url search param

This commit is contained in:
Timothy J. Baek committed 2024-08-21 18:55:12 +02:00
1 parent a93b0ac143
commit dc4c6b3b14
3 files changed
+19 -3

No files matched your search

+4 -2
View File
@@ -270,9 +270,11 @@
//////////////////////////
const initNewChat = async () => {
window.history.replaceState(history.state, '', `/`);
await chatId.set('');
if ($page.url.pathname.includes('/c/')) {
window.history.replaceState(history.state, '', `/`);
}
await chatId.set('');
autoScroll = true;
title = '';