Skip to content

Commit

Permalink
fix (startup): fix font theme key (opensearch-project#6703)
Browse files Browse the repository at this point in the history
key should be `v8` not `default`

Signed-off-by: Josh Romero <[email protected]>
  • Loading branch information
joshuarrrr authored May 2, 2024
1 parent 9ac5203 commit 1029884
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/legacy/ui/ui_render/bootstrap/startup.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ var themeVersion = rawThemeVersion === 'v7' ? 'v7' : 'v8';

window.__osdThemeTag__ = themeVersion + darkMode;

var themeSourceKey = themeVersion === 'v7' ? 'v7' : 'default';

var themeSources = {{THEME_SOURCES}};

var themeDefinition = themeSources[themeVersion][darkMode];
Expand Down Expand Up @@ -82,8 +80,8 @@ document.head.insertBefore(themedStylesDom, stylesheetTarget);
var fontTexts = {{fontText}};
var fontCodes = {{fontCode}};

var fontText = fontTexts[themeSourceKey];
var fontCode = fontCodes[themeSourceKey];
var fontText = fontTexts[themeVersion];
var fontCode = fontCodes[themeVersion];

var fontTarget = document.querySelector('head meta[name="add-fonts-here"]');

Expand Down

0 comments on commit 1029884

Please sign in to comment.