summaryrefslogtreecommitdiff
path: root/inject-css.js
diff options
context:
space:
mode:
authorSameera Sandakelum <[email protected]>2025-04-10 22:08:01 +0530
committerGitHub <[email protected]>2025-04-10 22:08:01 +0530
commit1514ed2616dd1e6a71e184e0eea772e305772910 (patch)
treee321d5ea864386815a4ea8add11e96cc35e7d55e /inject-css.js
parentf81bb8b97de7442f95339b93d5885a5f79f36789 (diff)
Update inject-css.js
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'inject-css.js')
-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(() => {