Skip to content

Commit

Permalink
Update nodes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jplomas authored Mar 30, 2020
1 parent 4d8d30b commit 34a65df
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions imports/startup/both/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 34a65df

Please sign in to comment.