From bdc7032b61b2f00d69ee94932a547ba55b6b2665 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 May 2024 20:36:54 +0000 Subject: [PATCH] fix (startup): fix font theme key (#6703) key should be `v8` not `default` Signed-off-by: Josh Romero (cherry picked from commit 10298849e38d90fae331d79389120a825629728d) Signed-off-by: github-actions[bot] --- src/legacy/ui/ui_render/bootstrap/startup.js.hbs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/legacy/ui/ui_render/bootstrap/startup.js.hbs b/src/legacy/ui/ui_render/bootstrap/startup.js.hbs index b54e94b0b9e..2a7e6f28a90 100644 --- a/src/legacy/ui/ui_render/bootstrap/startup.js.hbs +++ b/src/legacy/ui/ui_render/bootstrap/startup.js.hbs @@ -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]; @@ -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"]');