diff options
author | Sameera Sandakelum <[email protected]> | 2025-04-10 22:08:01 +0530 |
---|---|---|
committer | GitHub <[email protected]> | 2025-04-10 22:08:01 +0530 |
commit | 1514ed2616dd1e6a71e184e0eea772e305772910 (patch) | |
tree | e321d5ea864386815a4ea8add11e96cc35e7d55e | |
parent | f81bb8b97de7442f95339b93d5885a5f79f36789 (diff) |
Update inject-css.js
Co-authored-by: Copilot <[email protected]>
-rw-r--r-- | inject-css.js | 6 |
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(() => { |