diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-24 01:00:13 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-24 01:00:13 +0100 |
commit | 5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec (patch) | |
tree | 5ddd8d83ffe29ffb8e41b76e7507cf69b227724a /src/utils/quickCss.ts | |
parent | c9fac8fffffb24f54d6bb388ee3c743e616641ab (diff) | |
download | Vencord-5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec.tar.gz Vencord-5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec.tar.bz2 Vencord-5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec.zip |
New Plugin: HideAttachments
Diffstat (limited to 'src/utils/quickCss.ts')
-rw-r--r-- | src/utils/quickCss.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/quickCss.ts b/src/utils/quickCss.ts index 02a5c16..0ce1f58 100644 --- a/src/utils/quickCss.ts +++ b/src/utils/quickCss.ts @@ -28,7 +28,7 @@ export async function toggle(isEnabled: boolean) { style.id = "vencord-custom-css"; 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); + style.textContent = await VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS); } } else // @ts-ignore yes typescript, property 'disabled' does exist on type 'HTMLStyleElement' u should try reading the docs some time style.disabled = !isEnabled; |