mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 14:40:34 +00:00
12 lines
No EOL
409 B
TypeScript
12 lines
No EOL
409 B
TypeScript
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) as Promise<string>,
|
|
getVersions: () => process.versions
|
|
}; |