From 4a91c27e4b69cedf05a2f7fed271101198c1b183 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sun, 6 Dec 2015 22:50:28 +0000 Subject: [PATCH] Allow server to be option on red.init --- red/red.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/red/red.js b/red/red.js index b56323ee3..e9924a43e 100644 --- a/red/red.js +++ b/red/red.js @@ -40,6 +40,11 @@ function checkBuild() { module.exports = { init: function(httpServer,userSettings) { + if (!userSettings) { + userSettings = httpServer; + httpServer = null; + } + if (!userSettings.SKIP_BUILD_CHECK) { checkBuild(); }