mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
8 lines
367 B
TypeScript
8 lines
367 B
TypeScript
import IpcEvents from "./IpcEvents";
|
|
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
const style = document.createElement("style");
|
|
document.head.appendChild(style);
|
|
VencordNative.ipc.on(IpcEvents.QUICK_CSS_UPDATE, (_, css: string) => style.innerText = css);
|
|
style.innerText = await VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS);
|
|
});
|