forked from MapComplete/MapComplete
		
	Save layoutconfigJSON as preferences, the are saved in the morescreen
This commit is contained in:
		
							parent
							
								
									c874afc745
								
							
						
					
					
						commit
						6cb5803efd
					
				
					 6 changed files with 44 additions and 10 deletions
				
			
		|  | @ -20,7 +20,6 @@ import Toggle from "../Input/Toggle"; | |||
| import {OsmConnection} from "../../Logic/Osm/OsmConnection"; | ||||
| import Constants from "../../Models/Constants"; | ||||
| import ContributorCount from "../../Logic/ContributorCount"; | ||||
| import {icon} from "leaflet"; | ||||
| import Img from "../Base/Img"; | ||||
| 
 | ||||
| export class OpenIdEditor extends VariableUiElement { | ||||
|  | @ -211,7 +210,11 @@ export default class CopyrightPanel extends Combine { | |||
| 
 | ||||
|     private static IconAttribution(iconPath: string): BaseUIElement { | ||||
|         if (iconPath.startsWith("http")) { | ||||
|             try{ | ||||
|             iconPath = "." + new URL(iconPath).pathname; | ||||
|             }catch(e){ | ||||
|                 console.error(e) | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         const license: SmallLicense = CopyrightPanel.LicenseObject[iconPath] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue