fix: don't add empty :root{}
This commit is contained in:
parent
0d66604be5
commit
c0dff86cb2
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ async function initThemes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
themesStyle.textContent = links.map(link => `@import url("${link.trim()}");`).join("\n");
|
themesStyle.textContent = links.map(link => `@import url("${link.trim()}");`).join("\n");
|
||||||
themesStyle.textContent += `:root{${cssVars.join("\n")}}`;
|
if (cssVars.length > 0) themesStyle.textContent += `:root{${cssVars.join("\n")}}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
Loading…
Reference in a new issue