nsarrazin HF staff commited on
Commit
7bd994f
1 Parent(s): 26efb26

Reset app title when clicking new chat (#552)

Browse files
Files changed (1) hide show
  1. src/routes/+page.svelte +5 -0
src/routes/+page.svelte CHANGED
@@ -1,6 +1,7 @@
1
  <script lang="ts">
2
  import { goto } from "$app/navigation";
3
  import { base } from "$app/paths";
 
4
  import ChatWindow from "$lib/components/chat/ChatWindow.svelte";
5
  import { ERROR_MESSAGES, error } from "$lib/stores/errors";
6
  import { pendingMessage } from "$lib/stores/pendingMessage";
@@ -45,6 +46,10 @@
45
  }
46
  </script>
47
 
 
 
 
 
48
  <ChatWindow
49
  on:message={(ev) => createConversation(ev.detail)}
50
  {loading}
 
1
  <script lang="ts">
2
  import { goto } from "$app/navigation";
3
  import { base } from "$app/paths";
4
+ import { PUBLIC_APP_NAME } from "$env/static/public";
5
  import ChatWindow from "$lib/components/chat/ChatWindow.svelte";
6
  import { ERROR_MESSAGES, error } from "$lib/stores/errors";
7
  import { pendingMessage } from "$lib/stores/pendingMessage";
 
46
  }
47
  </script>
48
 
49
+ <svelte:head>
50
+ <title>{PUBLIC_APP_NAME}</title>
51
+ </svelte:head>
52
+
53
  <ChatWindow
54
  on:message={(ev) => createConversation(ev.detail)}
55
  {loading}