feat: bundle frontend with API executable
This commit is contained in:
		
							parent
							
								
									57c7a0f4de
								
							
						
					
					
						commit
						6c9ebf1d08
					
				
					 13 changed files with 105 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,10 @@ async function getCurrentUser() {
 | 
			
		|||
  try {
 | 
			
		||||
    return await fetchAPI<MeUser>("/users/@me");
 | 
			
		||||
  } catch (e) {
 | 
			
		||||
    if ((e as APIError).code === ErrorCode.Forbidden) {
 | 
			
		||||
    if (
 | 
			
		||||
      (e as APIError).code === ErrorCode.Forbidden ||
 | 
			
		||||
      (e as APIError).code === ErrorCode.InvalidToken
 | 
			
		||||
    ) {
 | 
			
		||||
      localStorage.removeItem("pronouns-token");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue