diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-09 22:58:08 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-09 22:58:08 +0200 |
commit | a89e17a3904cce8b7c9a70519e275fe9364526ae (patch) | |
tree | cd611a02618ac9aa59af7633ee35d96926251e68 /src/utils/quickCss.ts | |
parent | 5610df8b3707fd8405764b903cb3f829571075ac (diff) | |
download | Vencord-a89e17a3904cce8b7c9a70519e275fe9364526ae.tar.gz Vencord-a89e17a3904cce8b7c9a70519e275fe9364526ae.tar.bz2 Vencord-a89e17a3904cce8b7c9a70519e275fe9364526ae.zip |
Make typescript happy, tsc test run in CI
Diffstat (limited to 'src/utils/quickCss.ts')
-rw-r--r-- | src/utils/quickCss.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/quickCss.ts b/src/utils/quickCss.ts index eea44df..785dd71 100644 --- a/src/utils/quickCss.ts +++ b/src/utils/quickCss.ts @@ -12,7 +12,8 @@ export async function toggle(isEnabled: boolean) { VencordNative.ipc.on(IpcEvents.QUICK_CSS_UPDATE, (_, css: string) => style.innerText = css); style.innerText = await VencordNative.ipc.invoke(IpcEvents.GET_QUICK_CSS); } - } else style.disabled = !isEnabled; + } else // @ts-ignore yes typescript, property 'disabled' does exist on type 'HTMLStyleElement' u should try reading the docs some time + style.disabled = !isEnabled; } document.addEventListener("DOMContentLoaded", () => { |