From 876e622f4f61a4aa229ad69782d374335c3d8d6b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 29 Aug 2022 18:11:44 +0200 Subject: Progress --- src/VencordNative.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/VencordNative.ts (limited to 'src/VencordNative.ts') diff --git a/src/VencordNative.ts b/src/VencordNative.ts new file mode 100644 index 0000000..1798cbf --- /dev/null +++ b/src/VencordNative.ts @@ -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) +}; \ No newline at end of file -- cgit