1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Allow server to be option on red.init

This commit is contained in:
Nick O'Leary 2015-12-06 22:50:28 +00:00
parent 3a03d46d8d
commit 4a91c27e4b

View File

@ -40,6 +40,11 @@ function checkBuild() {
module.exports = { module.exports = {
init: function(httpServer,userSettings) { init: function(httpServer,userSettings) {
if (!userSettings) {
userSettings = httpServer;
httpServer = null;
}
if (!userSettings.SKIP_BUILD_CHECK) { if (!userSettings.SKIP_BUILD_CHECK) {
checkBuild(); checkBuild();
} }