change subfunction name to openLast
This commit is contained in:
		
							parent
							
								
									951757a5c9
								
							
						
					
					
						commit
						43e3f081ca
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -24,7 +24,7 @@ function say() { | ||||||
| 		Arrange the interface. | 		Arrange the interface. | ||||||
| 		*/ | 		*/ | ||||||
| function arrange() { | function arrange() { | ||||||
|   async function click() { |   async function openLast() { | ||||||
|     let last_opened = ( |     let last_opened = ( | ||||||
|       await Promise.all([secretariat.read([`view`, window.location.href], 1)]) |       await Promise.all([secretariat.read([`view`, window.location.href], 1)]) | ||||||
|     )[0]; |     )[0]; | ||||||
|  | @ -35,9 +35,7 @@ function arrange() { | ||||||
|     document.querySelector(`[role="tab"][for="${last_opened}"]`).click(); |     document.querySelector(`[role="tab"][for="${last_opened}"]`).click(); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // click!
 |   openLast(); | ||||||
|   // document.querySelector(`menu button[role="tab"][aria-controls="${last_opened}"]`).click();
 |  | ||||||
|   click(); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* | /* | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue