From 34a65dff069434503598196cdaff82fd7ad30f0c Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Mon, 30 Mar 2020 22:58:00 +0100 Subject: [PATCH] Update nodes.js --- imports/startup/both/nodes.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/imports/startup/both/nodes.js b/imports/startup/both/nodes.js index 0e60f61a..0378b649 100644 --- a/imports/startup/both/nodes.js +++ b/imports/startup/both/nodes.js @@ -91,18 +91,18 @@ DEFAULT_NETWORKS = [{ // disable during network upgrade // Override DEFAULT_NETWORKS if provided in settings file -//try { -// if (Meteor.settings.public.defaultNetworks.length > 0) { +try { + if (Meteor.settings.public.defaultNetworks.length > 0) { // Reset DEFAULT_NETWORKS // eslint-disable-next-line no-unused-vars, no-undef -// DEFAULT_NETWORKS = [] + DEFAULT_NETWORKS = [] // Set DEFAULT_NETWORKS from Meteor settings // eslint-disable-next-line no-unused-vars, no-undef -// DEFAULT_NETWORKS = Meteor.settings.public.defaultNetworks -// } -//} catch (e) { + DEFAULT_NETWORKS = Meteor.settings.public.defaultNetworks + } +} catch (e) { // no configuration file used -//} +} // Function to search through the DEFAULT_NETWORKS array and identify and return an // object based on its 'id' value.