Vencord/src/utils/quickCss.ts

7 lines
290 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();
});