mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Update packages/node_modules/node-red/red.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
		
							
								
								
									
										9
									
								
								packages/node_modules/node-red/red.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								packages/node_modules/node-red/red.js
									
									
									
									
										vendored
									
									
								
							@@ -150,14 +150,7 @@ if (settings.https) {
 | 
			
		||||
        // Get the result of the function, because createServer doesn't accept functions as input
 | 
			
		||||
        startupHttps = startupHttps(); 
 | 
			
		||||
    }  
 | 
			
		||||
 | 
			
		||||
    if (startupHttps.hasOwnProperty('then') && typeof startupHttps.then === 'function') {
 | 
			
		||||
        // A promise was returned
 | 
			
		||||
        httpsPromise = startupHttps;
 | 
			
		||||
    } else {
 | 
			
		||||
        // An object was returned - wrap in a promise
 | 
			
		||||
        httpsPromise = Promise.resolve(startupHttps);
 | 
			
		||||
    }
 | 
			
		||||
    httpsPromise = Promise.resolve(startupHttps);
 | 
			
		||||
}
 | 
			
		||||
else {
 | 
			
		||||
    // No https is enable - wrap null
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user