📕 fix: Update document Title based on appTitle and on "New Chat" (#1553)

This commit is contained in:
Danny Avila 2024-01-14 20:35:37 -05:00 committed by GitHub
parent 0f49642758
commit dfe45f80c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -92,6 +92,10 @@ const useNewConvo = (index = 0) => {
}
if (conversation.conversationId === 'new' && !modelsData) {
const appTitle = localStorage.getItem('appTitle');
if (appTitle) {
document.title = appTitle;
}
navigate('new');
}
},