Custom CSS

This commit is contained in:
syuilo 2021-07-14 00:11:05 +09:00
parent 2047860e71
commit c7a2c368d4
5 changed files with 85 additions and 0 deletions

View file

@ -107,6 +107,13 @@
document.documentElement.style.backgroundImage = `url(${wallpaper})`;
}
const customCss = localStorage.getItem('customCss');
if (customCss && customCss.length > 0) {
const style = document.createElement('style');
style.innerHTML = customCss;
head.appendChild(style);
}
// eslint-disable-next-line no-inner-declarations
function renderError(code, details) {
document.documentElement.innerHTML = `