From e33ad400280d54e45af3f71aeacf768e2375ebc3 Mon Sep 17 00:00:00 2001 From: Nikki Sharpley Date: Thu, 27 Jul 2023 13:17:15 -0400 Subject: [PATCH] remove logs --- src/utils/theme.js | 5 ++--- webpack.config.js | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils/theme.js b/src/utils/theme.js index 0e39c70741..654865114f 100644 --- a/src/utils/theme.js +++ b/src/utils/theme.js @@ -105,9 +105,8 @@ function getCurrentTheme() { function getThemeColor(name) { const theme = getCurrentTheme(); - console.log(theme) - // theme?.[name] ensures legacy variables for nametag colors are taken into account - return theme?.variables?.[name] || theme?.[name] || DEFAULT_COLORS[name]; + // config?.theme?.[name] ensures legacy variables for nametag colors are taken into account + return theme?.variables?.[name] || config?.theme?.[name] || DEFAULT_COLORS[name]; } function updateTextButtonColors() { diff --git a/webpack.config.js b/webpack.config.js index 974c0bd98b..2eaf480407 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -234,7 +234,6 @@ module.exports = async (env, argv) => { /** * Initialize the Webpack build envrionment for the provided environment. */ - if (argv.mode !== "production" || env.bundleAnalyzer) { if (env.loadAppConfig || process.env.LOAD_APP_CONFIG) { if (!env.localDev) {