mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 00:36:23 +00:00
10 lines
351 B
TypeScript
10 lines
351 B
TypeScript
import { contextBridge, webFrame } from "electron";
|
|
import { readFileSync } from "fs";
|
|
import { join } from "path";
|
|
import VencordNative from "./VencordNative";
|
|
|
|
contextBridge.exposeInMainWorld("VencordNative", VencordNative);
|
|
|
|
webFrame.executeJavaScript(readFileSync(join(__dirname, "renderer.js"), "utf-8"));
|
|
|
|
require(process.env.DISCORD_PRELOAD!);
|