From 1514ed2616dd1e6a71e184e0eea772e305772910 Mon Sep 17 00:00:00 2001 From: Sameera Sandakelum Date: Thu, 10 Apr 2025 22:08:01 +0530 Subject: Update inject-css.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- inject-css.js | 6 +++--- 1 file 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(() => { -- cgit v1.2.3