aboutsummaryrefslogtreecommitdiff
path: root/src/preload.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/preload.ts')
-rw-r--r--src/preload.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/preload.ts b/src/preload.ts
index 0fc7430..73d2eb5 100644
--- a/src/preload.ts
+++ b/src/preload.ts
@@ -1,14 +1,10 @@
import { contextBridge, webFrame } from "electron";
import { readFileSync } from "fs";
import { join } from "path";
-import Vencord from "./Vencord";
+import VencordNative from "./VencordNative";
-contextBridge.exposeInMainWorld("VencordNative", {
- getSettings: () => "hi"
-});
+contextBridge.exposeInMainWorld("VencordNative", VencordNative);
webFrame.executeJavaScript(readFileSync(join(__dirname, "renderer.js"), "utf-8"));
require(process.env.DISCORD_PRELOAD!);
-
-window.onload = () => console.log("hi"); \ No newline at end of file