From cc9e29981480fc211e9ad8fc46ecf52db5d8d450 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 26 Dec 2023 14:41:41 -0800 Subject: [PATCH] fix: initNewChat --- run.sh | 2 +- src/routes/(app)/+page.svelte | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index e2fae795d..d145c08d8 100644 --- a/run.sh +++ b/run.sh @@ -1,5 +1,5 @@ docker stop ollama-webui || true docker rm ollama-webui || true docker build -t ollama-webui . -docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app --name ollama-webui --restart always ollama-webui +docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend --name ollama-webui --restart always ollama-webui docker image prune -f \ No newline at end of file diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 79bbfc178..6f272a62e 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -64,6 +64,8 @@ ////////////////////////// const initNewChat = async () => { + window.history.replaceState(history.state, '', `/`); + console.log('initNewChat'); await chatId.set('');