Skip to content

Commit

Permalink
Change UI configuration to a Javascript file
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io>
  • Loading branch information
th3M1ke committed Jan 13, 2021
1 parent 551db4c commit 2b9dadb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/jaeger-ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
// Jaeger UI config data is embedded by the query-service via search-replace.
// This is later merged with defaults into the redux `state.config` via
// src/utils/config/get-config.js.
// JAEGER_CONFIG_JS
// the line above may be replaced by user-provided JS file that should define a UIConfig function.
function getJaegerUiConfig() {
if(typeof window.UIConfig === 'function') {
return UIConfig();
}
const DEFAULT_CONFIG = null;
const JAEGER_CONFIG = DEFAULT_CONFIG;
return JAEGER_CONFIG;
Expand Down

0 comments on commit 2b9dadb

Please sign in to comment.