mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	
							
								
								
									
										9
									
								
								web_src/js/modules/worker.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								web_src/js/modules/worker.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| import {sleep} from '../utils.js'; | ||||
|  | ||||
| const {appSubUrl} = window.config; | ||||
|  | ||||
| export async function logoutFromWorker() { | ||||
|   // wait for a while because other requests (eg: logout) may be in the flight | ||||
|   await sleep(5000); | ||||
|   window.location.href = `${appSubUrl}/`; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user