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:
parent
3a03d46d8d
commit
4a91c27e4b
@ -40,6 +40,11 @@ function checkBuild() {
|
||||
|
||||
module.exports = {
|
||||
init: function(httpServer,userSettings) {
|
||||
if (!userSettings) {
|
||||
userSettings = httpServer;
|
||||
httpServer = null;
|
||||
}
|
||||
|
||||
if (!userSettings.SKIP_BUILD_CHECK) {
|
||||
checkBuild();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user