diff options
author | Vendicated <vendicated@riseup.net> | 2022-08-29 18:11:44 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-08-29 18:11:44 +0200 |
commit | 876e622f4f61a4aa229ad69782d374335c3d8d6b (patch) | |
tree | 9119371f584f59b4512553d6548bd11fc84b7dcf /src/VencordNative.ts | |
parent | af498e78291b67377aaf876c84143cdfe7c8b308 (diff) | |
download | Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.tar.gz Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.tar.bz2 Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.zip |
Progress
Diffstat (limited to 'src/VencordNative.ts')
-rw-r--r-- | src/VencordNative.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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 |