forked from MapComplete/MapComplete
		
	Fix statistics page
This commit is contained in:
		
							parent
							
								
									24efcfb945
								
							
						
					
					
						commit
						439e66e9e3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -44,12 +44,12 @@ const cm = document.getElementById("centermessage")
 | 
				
			||||||
cm.parentElement.removeChild(cm)
 | 
					cm.parentElement.removeChild(cm)
 | 
				
			||||||
if (mode.data === "statistics") {
 | 
					if (mode.data === "statistics") {
 | 
				
			||||||
    console.log("Statistics mode!")
 | 
					    console.log("Statistics mode!")
 | 
				
			||||||
    new StatisticsGUI().SetClass("w-full h-full pointer-events-auto").AttachTo("topleft-tools")
 | 
					    new StatisticsGUI().SetClass("w-full h-full pointer-events-auto").AttachTo("top-left")
 | 
				
			||||||
} else if (mode.data === "pdf") {
 | 
					} else if (mode.data === "pdf") {
 | 
				
			||||||
    MinimapImplementation.initialize()
 | 
					    MinimapImplementation.initialize()
 | 
				
			||||||
    const div = document.createElement("div")
 | 
					    const div = document.createElement("div")
 | 
				
			||||||
    div.id = "extra_div_for_maps"
 | 
					    div.id = "extra_div_for_maps"
 | 
				
			||||||
    new PdfExportGui(div.id).SetClass("pointer-events-auto").AttachTo("topleft-tools")
 | 
					    new PdfExportGui(div.id).SetClass("pointer-events-auto").AttachTo("top-left")
 | 
				
			||||||
    document.getElementById("topleft-tools").appendChild(div)
 | 
					    document.getElementById("topleft-tools").appendChild(div)
 | 
				
			||||||
} else {
 | 
					} else {
 | 
				
			||||||
    new AllThemesGui().setup()
 | 
					    new AllThemesGui().setup()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue