forked from CIT/Vmeda.Online
		
	MOBILE-3716 core: Fix token error for logged out sites
This commit is contained in:
		
							parent
							
								
									1e03a201a4
								
							
						
					
					
						commit
						2159be957d
					
				@ -146,7 +146,7 @@ export class CoreSite {
 | 
			
		||||
     * @return Site ID.
 | 
			
		||||
     */
 | 
			
		||||
    getId(): string {
 | 
			
		||||
        if (!this.id) {
 | 
			
		||||
        if (this.id === undefined) {
 | 
			
		||||
            // Shouldn't happen for authenticated sites.
 | 
			
		||||
            throw new CoreError('This site doesn\'t have an ID');
 | 
			
		||||
        }
 | 
			
		||||
@ -169,7 +169,7 @@ export class CoreSite {
 | 
			
		||||
     * @return Site token.
 | 
			
		||||
     */
 | 
			
		||||
    getToken(): string {
 | 
			
		||||
        if (!this.token) {
 | 
			
		||||
        if (this.token === undefined) {
 | 
			
		||||
            // Shouldn't happen for authenticated sites.
 | 
			
		||||
            throw new CoreError('This site doesn\'t have a token');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user