2022-08-30 22:07:16 -04:00
|
|
|
import IpcEvents from "./IpcEvents";
|
|
|
|
|
2022-08-29 12:11:44 -04:00
|
|
|
document.addEventListener("DOMContentLoaded", async () => {
|
|
|
|
const style = document.createElement("style");
|
|
|
|
document.head.appendChild(style);
|
2022-08-30 22:07:16 -04:00
|
|
|
VencordNative.ipc.on(IpcEvents.QUICK_CSS_UPDATE, (_, css: string) => style.innerText = css);
|
|
|
|
style.innerText = await VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS);
|
2022-08-29 19:42:47 -04:00
|
|
|
});
|