an example of code where manual sync can be used
Removed commented out code
This commit is contained in:
		
							parent
							
								
									333310fcc8
								
							
						
					
					
						commit
						3df2ccbd65
					
				
					 1 changed files with 56 additions and 82 deletions
				
			
		|  | @ -14,34 +14,8 @@ async function build() { | |||
| 	).default; | ||||
| 
 | ||||
| 	let window = new windowman(); | ||||
| } | ||||
| 
 | ||||
| /* | ||||
| 		Arrange the interface. | ||||
| 		*/ | ||||
| /*function arrange() { | ||||
| 	async function openLast() { | ||||
| 		let last_opened = ( | ||||
| 			await Promise.all([secretariat.read([`view`, window.location.href], 1)]) | ||||
| 		)[0]; | ||||
| 		if (!last_opened || typeof last_opened !== `number`) { | ||||
| 			last_opened = 0; | ||||
| 		} | ||||
| 
 | ||||
| 		if (document.querySelector(`[role="tab"][tab="${last_opened}"]`)) { | ||||
| 			document.querySelector(`[role="tab"][tab="${last_opened}"]`).click(); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	openLast(); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| function main() { | ||||
| 	windowman.fill(); | ||||
| 	events(); | ||||
| 	arrange(); | ||||
| }*/ | ||||
| 	window.sync(); | ||||
| }; | ||||
| 
 | ||||
| /* | ||||
| 		Define the mapping of each button. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue