enh: temporary-chat url search param

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

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 = '';