Fix custom CSS

This commit is contained in:
Natsumi
2025-07-19 16:31:12 +12:00
parent d26a05b02b
commit eaeadb9cc3
2 changed files with 8 additions and 2 deletions

View File

@@ -162,7 +162,9 @@ async function refreshCustomCss() {
$appCustomStyle.setAttribute('id', 'app-custom-style');
$appCustomStyle.rel = 'stylesheet';
$appCustomStyle.type = 'text/css';
$appCustomStyle.textContent = customCss;
$appCustomStyle.href = URL.createObjectURL(
new Blob([customCss], { type: 'text/css' })
);
head.appendChild($appCustomStyle);
}
}