Skip to content

Commit

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

Signed-off-by: Josh Romero <rmerqg@amazon.com>
  • Loading branch information
joshuarrrr committed May 2, 2024
1 parent 9ac5203 commit 0764320
Show file tree
Hide file tree
Showing 2 changed files 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
Empty file.

0 comments on commit 0764320

Please sign in to comment.