Vencord/src/utils/quickCss.ts

6 lines
289 B
TypeScript
Raw Normal View History

2022-08-29 16:11:44 +00:00
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();
});