From 9ec7fb1c5b6c01f84cd4687f2073e8c0dcfc854e Mon Sep 17 00:00:00 2001 From: Bing Bhakdibhumi Date: Wed, 22 Jan 2025 23:50:06 -0500 Subject: [PATCH 1/3] removed || operator on line 231 to reduce complexity --- src/meta/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/css.js b/src/meta/css.js index 4b7e999383..0b75dfb887 100644 --- a/src/meta/css.js +++ b/src/meta/css.js @@ -228,7 +228,7 @@ async function getBundleMetadata(target) { ); paths.unshift(baseThemePath); paths.unshift(`${baseThemePath}/node_modules`); - themeData.bsVariables = parseInt(themeData.useBSVariables, 10) === 1 ? (themeData.bsVariables || '') : ''; + themeData.bsVariables = parseInt(themeData.useBSVariables, 10) === 1 ? (themeData.bsVariables) : ''; themeData.bootswatchSkin = skin; themeData.isCustomSkin = isCustomSkin; const customSkin = isCustomSkin ? await CSS.getCustomSkin(skin) : null; From 293cea714e45126a1fd0176d82b1d5ca7ff21d3c Mon Sep 17 00:00:00 2001 From: Bing Bhakdibhumi Date: Thu, 23 Jan 2025 13:24:47 -0500 Subject: [PATCH 2/3] added inital console log message --- src/meta/css.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meta/css.js b/src/meta/css.js index 0b75dfb887..79401d2bd5 100644 --- a/src/meta/css.js +++ b/src/meta/css.js @@ -218,6 +218,8 @@ async function getBundleMetadata(target) { } } + console.log("AHHHHH"); + let themeData = null; if (target === 'client') { themeData = await db.getObjectFields('config', ['theme:type', 'theme:id', 'useBSVariables', 'bsVariables']); From b14b8cb20a0402ee74a211690856840acf202506 Mon Sep 17 00:00:00 2001 From: Bing Bhakdibhumi Date: Thu, 23 Jan 2025 13:38:32 -0500 Subject: [PATCH 3/3] added log message with name right before the edit --- src/meta/css.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meta/css.js b/src/meta/css.js index 79401d2bd5..81aef0ead7 100644 --- a/src/meta/css.js +++ b/src/meta/css.js @@ -218,7 +218,7 @@ async function getBundleMetadata(target) { } } - console.log("AHHHHH"); + // console.log("AHHHHH"); let themeData = null; if (target === 'client') { @@ -230,6 +230,8 @@ async function getBundleMetadata(target) { ); paths.unshift(baseThemePath); paths.unshift(`${baseThemePath}/node_modules`); + + console.log("BING BHAKDIBHUMI"); themeData.bsVariables = parseInt(themeData.useBSVariables, 10) === 1 ? (themeData.bsVariables) : ''; themeData.bootswatchSkin = skin; themeData.isCustomSkin = isCustomSkin;