summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inject-css.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/inject-css.js b/inject-css.js
index 35f6526..f37abd7 100644
--- a/inject-css.js
+++ b/inject-css.js
@@ -51,9 +51,9 @@ function applyStyles(css) {
try {
// For immediate application, directly set textContent
// as this is more reliably applied in early document stages
- styleElement.textContent = `${css}
- /* Remove FOUC prevention once styles are loaded */
- body { opacity: 1 !important; }`;
+ styleElement.textContent = css.trim() + `
+/* Remove FOUC prevention once styles are loaded */
+body { opacity: 1 !important; }`;
// After a very short delay (to ensure CSS application), ensure body is visible
setTimeout(() => {