This commit is contained in:
Vendicated 2022-08-29 18:11:44 +02:00
parent af498e7829
commit 876e622f4f
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
17 changed files with 289 additions and 34 deletions

11
src/VencordNative.ts Normal file
View file

@ -0,0 +1,11 @@
import { IPC_QUICK_CSS_UPDATE, IPC_GET_QUICK_CSS } from './utils/ipcEvents';
import { ipcRenderer } from 'electron';
export default {
handleQuickCssUpdate(cb: (s: string) => void) {
ipcRenderer.on(IPC_QUICK_CSS_UPDATE, (_, css) => {
cb(css);
});
},
getQuickCss: () => ipcRenderer.invoke(IPC_GET_QUICK_CSS)
};