Switch to using .catch(()=>{}) instead of try catch
This commit is contained in:
		
						commit
						0113024be6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -5,5 +5,5 @@ import $to_relative "/js/sync/sync.js"
 | 
				
			||||||
import $to_relative "/js/chat.js"
 | 
					import $to_relative "/js/chat.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (!localStorage.getItem("access_token")) {
 | 
					if (!localStorage.getItem("access_token")) {
 | 
				
			||||||
	location.assign("./login")
 | 
						location.assign("./login/")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue