From 044b917be78f52e87f6d78446a6338df8c324388 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Tue, 7 May 2024 17:13:52 +0000 Subject: [PATCH] Revert "fix (startup): fix font theme key (#6703) (#6707)" This reverts commit 3c78162a04e611f1797638e54e06a0ceb8e89746. --- src/legacy/ui/ui_render/bootstrap/startup.js.hbs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/legacy/ui/ui_render/bootstrap/startup.js.hbs b/src/legacy/ui/ui_render/bootstrap/startup.js.hbs index 2a7e6f28a90b..b54e94b0b9e2 100644 --- a/src/legacy/ui/ui_render/bootstrap/startup.js.hbs +++ b/src/legacy/ui/ui_render/bootstrap/startup.js.hbs @@ -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]; @@ -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"]');