aboutsummaryrefslogtreecommitdiff
path: root/src/components/Monaco.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-25 18:07:29 +0100
committerVendicated <vendicated@riseup.net>2022-11-25 18:07:29 +0100
commitb60f6cb18d1d55d367ae2f3c322d76b709eacdfe (patch)
treec2d06ff7643da8244c157c03e877b273b5b61a39 /src/components/Monaco.ts
parentbb398970ef7d60c68191f5e6e153bdba24e07207 (diff)
downloadVencord-b60f6cb18d1d55d367ae2f3c322d76b709eacdfe.tar.gz
Vencord-b60f6cb18d1d55d367ae2f3c322d76b709eacdfe.tar.bz2
Vencord-b60f6cb18d1d55d367ae2f3c322d76b709eacdfe.zip
WhoReacted: Make more reliable & don't spam api
Diffstat (limited to 'src/components/Monaco.ts')
-rw-r--r--src/components/Monaco.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Monaco.ts b/src/components/Monaco.ts
index 16eff85..6d16c76 100644
--- a/src/components/Monaco.ts
+++ b/src/components/Monaco.ts
@@ -25,7 +25,7 @@ import { find } from "../webpack/webpack";
const queue = new Queue();
const setCss = debounce((css: string) => {
- queue.add(() => VencordNative.ipc.invoke(IpcEvents.SET_QUICK_CSS, css));
+ queue.push(() => VencordNative.ipc.invoke(IpcEvents.SET_QUICK_CSS, css));
});
export async function launchMonacoEditor() {