forked from MapComplete/MapComplete
		
	Fix build
This commit is contained in:
		
							parent
							
								
									13829a89a2
								
							
						
					
					
						commit
						e0b8a1c402
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -172,6 +172,9 @@ export default class ScriptUtils { | ||||||
|         headers?: any, |         headers?: any, | ||||||
|         timeoutSecs?: number |         timeoutSecs?: number | ||||||
|     ): Promise<{ content: string } | { redirect: string } | "timeout"> { |     ): Promise<{ content: string } | { redirect: string } | "timeout"> { | ||||||
|  |         if(url.startsWith("./assets")){ | ||||||
|  |             return Promise.resolve({content: readFileSync("./public/"+url, "utf8")}) | ||||||
|  |         } | ||||||
|         if(url.startsWith("./")){ |         if(url.startsWith("./")){ | ||||||
|             return Promise.resolve({content: readFileSync(url, "utf8")}) |             return Promise.resolve({content: readFileSync(url, "utf8")}) | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue