Fix cookies might not in boolean type cause page refresh loop
This commit is contained in:
		
							parent
							
								
									423dccae0e
								
							
						
					
					
						commit
						b8ff9112ef
					
				@ -53,7 +53,8 @@ function checkLoginStateChanged() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getLoginState() {
 | 
					function getLoginState() {
 | 
				
			||||||
    return Cookies.get('loginstate') === "true";
 | 
					    var state = Cookies.get('loginstate');
 | 
				
			||||||
 | 
					    return state === "true" || state === true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getUserId() {
 | 
					function getUserId() {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user