Skip to content

Commit

Permalink
Revert "fix (startup): fix font theme key (opensearch-project#6703) (o…
Browse files Browse the repository at this point in the history
…pensearch-project#6707)" (opensearch-project#6734)

This reverts commit 3c78162.

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
  • Loading branch information
kavilla authored May 7, 2024
1 parent 0115f28 commit 8382e5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/legacy/ui/ui_render/bootstrap/startup.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ 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 @@ -80,8 +82,8 @@ document.head.insertBefore(themedStylesDom, stylesheetTarget);
var fontTexts = {{fontText}};
var fontCodes = {{fontCode}};

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

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

Expand Down

0 comments on commit 8382e5c

Please sign in to comment.