forked from open-webui/open-webui
		
	refac
This commit is contained in:
		
							parent
							
								
									8461b92f08
								
							
						
					
					
						commit
						e5c812f1d2
					
				
					 2 changed files with 8 additions and 18 deletions
				
			
		|  | @ -69,7 +69,6 @@ | |||
| 	let tags = []; | ||||
| 
 | ||||
| 	let title = ''; | ||||
| 	let pageTitle = WEBUI_NAME; | ||||
| 	let prompt = ''; | ||||
| 	let files = []; | ||||
| 	let messages = []; | ||||
|  | @ -78,13 +77,6 @@ | |||
| 		currentId: null | ||||
| 	}; | ||||
| 
 | ||||
| 	$: if (title) { | ||||
| 		const trimmedTitle = title.length > 30 ? `${title.slice(0, 30)}...` : title; | ||||
| 		pageTitle = `${trimmedTitle} | ${$WEBUI_NAME}`; | ||||
| 	} else { | ||||
| 		pageTitle = $WEBUI_NAME; | ||||
| 	} | ||||
| 
 | ||||
| 	$: if (history.currentId !== null) { | ||||
| 		let _messages = []; | ||||
| 
 | ||||
|  | @ -819,7 +811,9 @@ | |||
| 
 | ||||
| <svelte:head> | ||||
| 	<title> | ||||
| 		{pageTitle} | ||||
| 		{title | ||||
| 			? `${title.length > 30 ? `${title.slice(0, 30)}...` : title} | ${$WEBUI_NAME}` | ||||
| 			: `${$WEBUI_NAME}`} | ||||
| 	</title> | ||||
| </svelte:head> | ||||
| 
 | ||||
|  |  | |||
|  | @ -72,7 +72,6 @@ | |||
| 	let tags = []; | ||||
| 
 | ||||
| 	let title = ''; | ||||
| 	let pageTitle = WEBUI_NAME; | ||||
| 	let prompt = ''; | ||||
| 	let files = []; | ||||
| 
 | ||||
|  | @ -82,13 +81,6 @@ | |||
| 		currentId: null | ||||
| 	}; | ||||
| 
 | ||||
| 	$: if (title) { | ||||
| 		const trimmedTitle = title.length > 30 ? `${title.slice(0, 30)}...` : title; | ||||
| 		pageTitle = `${trimmedTitle} | ${$WEBUI_NAME}`; | ||||
| 	} else { | ||||
| 		pageTitle = $WEBUI_NAME; | ||||
| 	} | ||||
| 
 | ||||
| 	$: if (history.currentId !== null) { | ||||
| 		let _messages = []; | ||||
| 
 | ||||
|  | @ -834,7 +826,11 @@ | |||
| </script> | ||||
| 
 | ||||
| <svelte:head> | ||||
| 	<title>{pageTitle}</title> | ||||
| 	<title> | ||||
| 		{title | ||||
| 			? `${title.length > 30 ? `${title.slice(0, 30)}...` : title} | ${$WEBUI_NAME}` | ||||
| 			: `${$WEBUI_NAME}`} | ||||
| 	</title> | ||||
| </svelte:head> | ||||
| 
 | ||||
| {#if loaded} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek