mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	set default when root is not defined
This commit is contained in:
		
							
								
								
									
										4
									
								
								packages/node_modules/node-red/red.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								packages/node_modules/node-red/red.js
									
									
									
									
										vendored
									
									
								
							| @@ -316,10 +316,10 @@ httpsPromise.then(function(startupHttps) { | ||||
|             } else { | ||||
|                 continue; | ||||
|             } | ||||
|             sp.subRoot = formatRoot(sp.root); | ||||
|             sp.subRoot = formatRoot(sp.root || "/"); | ||||
|             sp.root = formatRoot(path.posix.join(settings.httpStaticRoot,sp.subRoot)); | ||||
|         } | ||||
|         settings.httpStatic = sanitised.length ? sanitised : false;     | ||||
|         settings.httpStatic = sanitised.length ? sanitised : false; | ||||
|     } | ||||
|  | ||||
|     // if we got a port from command line, use it (even if 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user