From 98d8e119a1904951f28b579eb53de0bd45152e47 Mon Sep 17 00:00:00 2001 From: Nick Oates Date: Sun, 25 Aug 2024 01:45:42 -0700 Subject: [PATCH] Check trimmed css when removing --- plugins/_lib/css/setStyle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/_lib/css/setStyle.ts b/plugins/_lib/css/setStyle.ts index 9de258f..4575b7f 100644 --- a/plugins/_lib/css/setStyle.ts +++ b/plugins/_lib/css/setStyle.ts @@ -8,7 +8,7 @@ export const setStyle = (css?: string, id?: string) => { function setCSS(css?: string) { if (id) styleTag = document.getElementById(id); - if (!css) { + if (!css || !css.trim()) { remove(); } else { if (!styleTag) {