feat: change title
change title when changing nodes or applications
This commit is contained in:
		
							parent
							
								
									fe13a53e19
								
							
						
					
					
						commit
						d0dc3f4e0b
					
				| @ -313,6 +313,7 @@ function displayOutput(obj) { | |||||||
| 
 | 
 | ||||||
| function initWSocket() { | function initWSocket() { | ||||||
|     let host = $("#urlInput")[0].value; |     let host = $("#urlInput")[0].value; | ||||||
|  |     document.title = `数瑞浏览器(${host})` | ||||||
|     if (!host.startsWith("ws")) { |     if (!host.startsWith("ws")) { | ||||||
|         if (location.href.startsWith("https")) { |         if (location.href.startsWith("https")) { | ||||||
|             host = "wss://" + host; |             host = "wss://" + host; | ||||||
| @ -375,6 +376,7 @@ function changeApp() { | |||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|     console.log(global.currentContract); |     console.log(global.currentContract); | ||||||
|  |     document.title = `数瑞浏览器(${global.currentContract} - ${$("#urlInput")[0].value})` | ||||||
|     changeAppInternal(needRender(global.currentContract)); |     changeAppInternal(needRender(global.currentContract)); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user