mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: additional script system setting (#467)
This commit is contained in:
@ -30,6 +30,11 @@ function App() {
|
||||
styleEl.setAttribute("type", "text/css");
|
||||
document.head.appendChild(styleEl);
|
||||
}
|
||||
if (status.additionalScript) {
|
||||
const scriptEl = document.createElement("script");
|
||||
scriptEl.innerHTML = status.additionalScript;
|
||||
document.head.appendChild(scriptEl);
|
||||
}
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
Reference in New Issue
Block a user