mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: prioritize user css by moving it to the body end (#847)
Co-authored-by: M. Gschwandtner <84477901+OnlyPain-ctrl@users.noreply.github.com>
This commit is contained in:
@ -48,7 +48,7 @@ const App = () => {
|
|||||||
const styleEl = document.createElement("style");
|
const styleEl = document.createElement("style");
|
||||||
styleEl.innerHTML = systemStatus.additionalStyle;
|
styleEl.innerHTML = systemStatus.additionalStyle;
|
||||||
styleEl.setAttribute("type", "text/css");
|
styleEl.setAttribute("type", "text/css");
|
||||||
document.head.appendChild(styleEl);
|
document.body.insertAdjacentElement("beforeend", styleEl);
|
||||||
}
|
}
|
||||||
if (systemStatus.additionalScript) {
|
if (systemStatus.additionalScript) {
|
||||||
const scriptEl = document.createElement("script");
|
const scriptEl = document.createElement("script");
|
||||||
|
Reference in New Issue
Block a user