Browse Source

fix: initNewChat

Timothy J. Baek 1 year ago
parent
commit
cc9e299814
2 changed files with 3 additions and 1 deletions
  1. 1 1
      run.sh
  2. 2 0
      src/routes/(app)/+page.svelte

+ 1 - 1
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

+ 2 - 0
src/routes/(app)/+page.svelte

@@ -64,6 +64,8 @@
 	//////////////////////////
 
 	const initNewChat = async () => {
+		window.history.replaceState(history.state, '', `/`);
+
 		console.log('initNewChat');
 
 		await chatId.set('');