From 8a3c344887f30212963f94a68acad04bfb291118 Mon Sep 17 00:00:00 2001 From: andrey-canon Date: Tue, 16 Jan 2024 16:58:54 -0500 Subject: [PATCH] feat: add paragon theme condition If the PARAGON_THEME_URLS has been set the primary colors wont' be set on runtime --- src/initialize.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/initialize.js b/src/initialize.js index 7b4e32b1b..80d4f35df 100644 --- a/src/initialize.js +++ b/src/initialize.js @@ -204,9 +204,10 @@ export function loadExternalScripts(externalScripts, data) { */ export function setCustomPrimaryColors() { const { CUSTOM_PRIMARY_COLORS } = getConfig(); + const { PARAGON_THEME_URLS } = getConfig(); const primary = CUSTOM_PRIMARY_COLORS['pgn-color-primary-base']; - if (!primary) { + if (!primary || PARAGON_THEME_URLS != null) { return; } document.documentElement.style.setProperty('--pgn-color-primary-base', primary);