Add basic Vencord injection

This commit is contained in:
Vendicated
2023-03-31 01:21:06 +02:00
parent 5d9eb3e4fb
commit ccaad66b1b
5 changed files with 50 additions and 1 deletions

7
src/main/ipc.ts Normal file
View File

@@ -0,0 +1,7 @@
import { ipcMain } from "electron";
import { GET_VENCORD } from "../shared/IpcEvents";
import { fetchVencord } from "./vencord";
ipcMain.on(GET_VENCORD, async e => {
e.returnValue = await fetchVencord();
});