Skip to content

Commit

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


(cherry picked from commit 1029884)

Signed-off-by: Josh Romero <rmerqg@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 5ea9eac commit 3c78162
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 3c78162

Please sign in to comment.