Skip to content

Commit

Permalink
Check trimmed css when removing
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckoates committed Aug 25, 2024
1 parent 41cc115 commit 98d8e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/_lib/css/setStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 98d8e11

Please sign in to comment.