forked from MapComplete/MapComplete
		
	Show 'about mapcomplete' on index
This commit is contained in:
		
							parent
							
								
									1831365597
								
							
						
					
					
						commit
						0fc8bbe1ed
					
				
					 3 changed files with 9 additions and 7 deletions
				
			
		|  | @ -1,3 +1,5 @@ | |||
| import {Utils} from "../Utils"; | ||||
| 
 | ||||
| export class UIEventSource<T> { | ||||
| 
 | ||||
|     public data: T; | ||||
|  | @ -6,7 +8,10 @@ export class UIEventSource<T> { | |||
|      | ||||
|     private static allSources : UIEventSource<any>[] = UIEventSource.PrepPerf(); | ||||
|      | ||||
|     static PrepPerf(){ | ||||
|     static PrepPerf() : UIEventSource<any>[]{ | ||||
|         if(Utils.runningFromConsole){ | ||||
|             return []; | ||||
|         } | ||||
|         // @ts-ignore
 | ||||
|         window.mcperf = () => { | ||||
|             console.log(UIEventSource.allSources.length, "uieventsources created"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue