From 3321a5bcbcd9ea3638d061086a0e0ae03e6526fc Mon Sep 17 00:00:00 2001 From: ririxi Date: Mon, 11 Sep 2023 01:18:44 +0200 Subject: [PATCH] fix(preprocess): patch for `1.2.20` (#2556) --- src/preprocess/preprocess.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/preprocess/preprocess.go b/src/preprocess/preprocess.go index 4b537c9372..d3e257885f 100644 --- a/src/preprocess/preprocess.go +++ b/src/preprocess/preprocess.go @@ -232,9 +232,9 @@ func colorVariableReplace(content string) string { } func colorVariableReplaceForJS(content string) string { - utils.Replace(&content, `"#1db954"`, `getComputedStyle(document.body).getPropertyValue("--spice-button").trim()`) - utils.Replace(&content, `"#b3b3b3"`, `getComputedStyle(document.body).getPropertyValue("--spice-subtext").trim()`) - utils.Replace(&content, `"#ffffff"`, `getComputedStyle(document.body).getPropertyValue("--spice-text").trim()`) + utils.Replace(&content, `"#1db954"`, ` getComputedStyle(document.body).getPropertyValue("--spice-button").trim()`) + utils.Replace(&content, `"#b3b3b3"`, ` getComputedStyle(document.body).getPropertyValue("--spice-subtext").trim()`) + utils.Replace(&content, `"#ffffff"`, ` getComputedStyle(document.body).getPropertyValue("--spice-text").trim()`) utils.Replace(&content, `color:"white"`, `color:"var(--spice-text)"`) return content }