From 876e622f4f61a4aa229ad69782d374335c3d8d6b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 29 Aug 2022 18:11:44 +0200 Subject: Progress --- src/preload.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/preload.ts') 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 -- cgit