forked from EVOgeek/Vmeda.Online
		
	MOBILE-4456 icons: Do not apply colors if svg has styles
This commit is contained in:
		
							parent
							
								
									61de79c493
								
							
						
					
					
						commit
						a94b58af6e
					
				| @ -354,6 +354,11 @@ export class CoreModIconComponent implements OnInit, OnChanges { | |||||||
|                 scripts[i].parentNode?.removeChild(scripts[i]); |                 scripts[i].parentNode?.removeChild(scripts[i]); | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |             // Has own styles, do not apply colors.
 | ||||||
|  |             if (doc.documentElement.getElementsByTagName('style').length > 0) { | ||||||
|  |                 this.isBranded = true; | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|             // Recursively remove attributes starting with on.
 |             // Recursively remove attributes starting with on.
 | ||||||
|             const removeAttributes = (element: Element): void => { |             const removeAttributes = (element: Element): void => { | ||||||
|                 Array.from(element.attributes).forEach((attr) => { |                 Array.from(element.attributes).forEach((attr) => { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user