This commit is contained in:
Vendicated 2022-08-29 02:25:27 +02:00
commit af498e7829
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
11 changed files with 1186 additions and 0 deletions

14
src/preload.ts Normal file
View file

@ -0,0 +1,14 @@
import { contextBridge, webFrame } from "electron";
import { readFileSync } from "fs";
import { join } from "path";
import Vencord from "./Vencord";
contextBridge.exposeInMainWorld("VencordNative", {
getSettings: () => "hi"
});
webFrame.executeJavaScript(readFileSync(join(__dirname, "renderer.js"), "utf-8"));
require(process.env.DISCORD_PRELOAD!);
window.onload = () => console.log("hi");