mirror of
https://github.com/celisej567/Vesktop.git
synced 2026-09-13 20:12:49 +03:00
10 lines
399 B
TypeScript
10 lines
399 B
TypeScript
import { contextBridge, ipcRenderer, webFrame } from "electron";
|
|
import { GET_RENDERER_SCRIPT, GET_VENCORD_PRELOAD_FILE } from "../shared/IpcEvents";
|
|
import { VencordDesktop } from "./VencordDesktop";
|
|
|
|
contextBridge.exposeInMainWorld("VencordDesktop", VencordDesktop);
|
|
|
|
require(ipcRenderer.sendSync(GET_VENCORD_PRELOAD_FILE));
|
|
|
|
webFrame.executeJavaScript(ipcRenderer.sendSync(GET_RENDERER_SCRIPT));
|