Skip to content

Commit

Permalink
Change UI configuration to a Javascript file (jaegertracing#677)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Semenchenko <mykhailo.semenchenko@logz.io>
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
  • Loading branch information
th3M1ke authored Jan 14, 2021
1 parent 0536c8a commit 1350fb4
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 1350fb4

Please sign in to comment.