mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-14 00:53:04 -04:00
Progress
This commit is contained in:
parent
af498e7829
commit
876e622f4f
17 changed files with 289 additions and 34 deletions
11
src/VencordNative.ts
Normal file
11
src/VencordNative.ts
Normal 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)
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue