MOBILE-4616 login: Avoid infinite loop
This commit is contained in:
		
							parent
							
								
									d424ba0f60
								
							
						
					
					
						commit
						b394cce7bd
					
				| @ -511,7 +511,11 @@ export class CoreLoginHelperProvider { | |||||||
|      */ |      */ | ||||||
|     isFeatureDisabled(feature: string, config?: CoreSitePublicConfigResponse): boolean { |     isFeatureDisabled(feature: string, config?: CoreSitePublicConfigResponse): boolean { | ||||||
|        // eslint-disable-next-line deprecation/deprecation
 |        // eslint-disable-next-line deprecation/deprecation
 | ||||||
|         return this.isFeatureDisabled(feature, config); |        const disabledFeatures = this.getDisabledFeatures(config); | ||||||
|  | 
 | ||||||
|  |         const regEx = new RegExp('(,|^)' + feature + '(,|$)', 'g'); | ||||||
|  | 
 | ||||||
|  |         return !!disabledFeatures.match(regEx); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user