forked from MapComplete/MapComplete
		
	Chore: housekeeping
This commit is contained in:
		
							parent
							
								
									8178c5607b
								
							
						
					
					
						commit
						cd0d275965
					
				
					 73 changed files with 2105 additions and 2219 deletions
				
			
		|  | @ -8,19 +8,21 @@ | |||
|   export let icons: string | { icon: string; color: string }[] | ||||
| 
 | ||||
|   let iconsParsed: { icon: string; color: string }[] | ||||
|   if(typeof icons === "string") { | ||||
|     iconsParsed = icons.split(";").map(subspec => { | ||||
|       if(subspec.startsWith("http://") || subspec.startsWith("https://")){ | ||||
|   if (typeof icons === "string") { | ||||
|     iconsParsed = icons.split(";").map((subspec) => { | ||||
|       if (subspec.startsWith("http://") || subspec.startsWith("https://")) { | ||||
|         return { | ||||
|           icon: subspec, color: "black" | ||||
|           icon: subspec, | ||||
|           color: "black", | ||||
|         } | ||||
|       } | ||||
|       const [icon, color] = subspec.split(":") | ||||
|       return { | ||||
|         icon, color: color ?? "black" | ||||
|         icon, | ||||
|         color: color ?? "black", | ||||
|       } | ||||
|     }) | ||||
|   }else{ | ||||
|   } else { | ||||
|     iconsParsed = icons | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue