Vencord/src/utils/quickCss.ts
2022-08-29 18:11:44 +02:00

6 lines
No EOL
289 B
TypeScript

document.addEventListener("DOMContentLoaded", async () => {
const style = document.createElement("style");
document.head.appendChild(style);
VencordNative.handleQuickCssUpdate((css: string) => style.innerText = css);
style.innerText = await VencordNative.getQuickCss();
});