Skip to content

Commit

Permalink
Disable warnings for logging of console errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentrickard committed Mar 2, 2021
1 parent 0d5d167 commit dd307ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ if (process.env.NODE_ENV === 'production') {
const settings = JSON.parse(root.dataset.federatedSearchAppConfig);
init(settings);
} else {
// eslint-disable-next-line
console.error('Federated Search React | Could not find a data-federated-search-app-config attribute on div#fs-root. Please populate data-federated-search-app-config with search app configuration data.');
}
} else {
// eslint-disable-next-line
console.error('Federated Search React | Could not find div#fs-root in which to load the search app.');
}
} else {
Expand All @@ -202,6 +204,7 @@ if (process.env.NODE_ENV === 'production') {
init(settings); // Load the app, passing in the ./.env.local.js config.
},
(error) => {
// eslint-disable-next-line
console.error('Federated Search React | Could not load local configuration for search app: ', error);
},
);
Expand Down

0 comments on commit dd307ee

Please sign in to comment.