diff options
author | Vendicated <vendicated@riseup.net> | 2022-08-29 18:11:44 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-08-29 18:11:44 +0200 |
commit | 876e622f4f61a4aa229ad69782d374335c3d8d6b (patch) | |
tree | 9119371f584f59b4512553d6548bd11fc84b7dcf /src/preload.ts | |
parent | af498e78291b67377aaf876c84143cdfe7c8b308 (diff) | |
download | Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.tar.gz Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.tar.bz2 Vencord-876e622f4f61a4aa229ad69782d374335c3d8d6b.zip |
Progress
Diffstat (limited to 'src/preload.ts')
-rw-r--r-- | src/preload.ts | 8 |
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 |