forked from MapComplete/MapComplete
		
	chore: automated housekeeping...
This commit is contained in:
		
							parent
							
								
									a0218253ce
								
							
						
					
					
						commit
						9ee3343426
					
				
					 154 changed files with 5959 additions and 3840 deletions
				
			
		|  | @ -673,20 +673,14 @@ class SvgToPdfPage { | |||
| 
 | ||||
|     public async PrepareLanguage(language: string) { | ||||
|         let host = window.location.host | ||||
|         if(host.startsWith("127.0.0.1")){ | ||||
|         if (host.startsWith("127.0.0.1")) { | ||||
|             host = "mapcomplete.org" | ||||
|         } | ||||
|         // Always fetch the remote data - it's cached anyway
 | ||||
|         this.layerTranslations[language] = await Utils.downloadJsonCached( | ||||
|             window.location.protocol + | ||||
|                 "//" + | ||||
|                 host + | ||||
|                 "/assets/langs/layers/" + | ||||
|                 language + | ||||
|                 ".json", | ||||
|             window.location.protocol + "//" + host + "/assets/langs/layers/" + language + ".json", | ||||
|             24 * 60 * 60 * 1000 | ||||
|         ) | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
|     public async Prepare() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue