forked from MapComplete/MapComplete
		
	Don't use a white background icon logo if a png is the logo, detect public URL automatically
This commit is contained in:
		
							parent
							
								
									049736de89
								
							
						
					
					
						commit
						1bc1ef2578
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		|  | @ -179,7 +179,11 @@ async function createLandingPage(layout: LayoutConfig, manifest) { | |||
|         if (icon.type !== "image/png") { | ||||
|             continue; | ||||
|         } | ||||
|         apple_icons.push(`<link rel="apple-touch-icon" sizes="${icon.sizes}" href="./assets/generated/generated_theme_${layout.id}_white_background${icon.sizes.substr(icon.sizes.indexOf("x")+ 1)}.png">`) | ||||
|         const whiteBgPath = `./assets/generated/generated_theme_${layout.id}_white_background${icon.sizes.substr(icon.sizes.indexOf("x")+ 1)}.png` | ||||
|         if(!existsSync(whiteBgPath)){ | ||||
|             continue | ||||
|         } | ||||
|         apple_icons.push(`<link rel="apple-touch-icon" sizes="${icon.sizes}" href="${whiteBgPath}">`) | ||||
|     } | ||||
| 
 | ||||
|     let themeSpecific = [ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue