blob: 73d2eb5484a303ad41ede66f5fbf9cbdea4a015a (
plain)
1
2
3
4
5
6
7
8
9
10
|
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!);
|