aboutsummaryrefslogtreecommitdiff
path: root/src/utils/quickCss.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/quickCss.ts')
-rw-r--r--src/utils/quickCss.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/quickCss.ts b/src/utils/quickCss.ts
index 724fde8..5c9e830 100644
--- a/src/utils/quickCss.ts
+++ b/src/utils/quickCss.ts
@@ -1,6 +1,8 @@
+import IpcEvents from "./IpcEvents";
+
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();
+ VencordNative.ipc.on(IpcEvents.QUICK_CSS_UPDATE, (_, css: string) => style.innerText = css);
+ style.innerText = await VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS);
});