aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-24 01:00:13 +0100
committerVendicated <vendicated@riseup.net>2022-11-24 01:00:13 +0100
commit5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec (patch)
tree5ddd8d83ffe29ffb8e41b76e7507cf69b227724a /src/utils
parentc9fac8fffffb24f54d6bb388ee3c743e616641ab (diff)
downloadVencord-5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec.tar.gz
Vencord-5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec.tar.bz2
Vencord-5dd0a3a746fb734c467e67dbe0e6fc95d5e6d1ec.zip
New Plugin: HideAttachments
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/quickCss.ts2
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;