mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			274 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			274 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import {sleep} from '../utils.ts';
 | 
						|
 | 
						|
const {appSubUrl} = window.config;
 | 
						|
 | 
						|
export async function logoutFromWorker(): Promise<void> {
 | 
						|
  // wait for a while because other requests (eg: logout) may be in the flight
 | 
						|
  await sleep(5000);
 | 
						|
  window.location.href = `${appSubUrl}/`;
 | 
						|
}
 |