diff options
author | Vendicated <vendicated@riseup.net> | 2022-08-31 04:07:16 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-08-31 04:07:16 +0200 |
commit | 98cb301df53305f397ac6e1b4e603c930820f228 (patch) | |
tree | 8c3bc642d0871a38f99aa2c2e8586bd7310cb361 /src/utils/quickCss.ts | |
parent | cb288e204dd531b31f957f82150398d22930fdeb (diff) | |
download | Vencord-98cb301df53305f397ac6e1b4e603c930820f228.tar.gz Vencord-98cb301df53305f397ac6e1b4e603c930820f228.tar.bz2 Vencord-98cb301df53305f397ac6e1b4e603c930820f228.zip |
Make Settings & Settings Page
Diffstat (limited to 'src/utils/quickCss.ts')
-rw-r--r-- | src/utils/quickCss.ts | 6 |
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); }); |