From f9b23289e400ce47eb898e886df56140e6591aa3 Mon Sep 17 00:00:00 2001 From: Josh Romero Date: Thu, 2 May 2024 17:45:54 +0000 Subject: [PATCH] fix (startup): fix font theme key key should be `v8` not `default` Signed-off-by: Josh Romero --- 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 b54e94b0b9e2..2a7e6f28a90b 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"]');