Custom CSS
This commit is contained in:
parent
2047860e71
commit
c7a2c368d4
5 changed files with 85 additions and 0 deletions
|
@ -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 = `
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue