haitop/src/preload/index.ts

8 lines
280 B
TypeScript
Raw Normal View History

2023-04-04 01:35:37 +02:00
import { contextBridge, ipcRenderer } from "electron";
2023-04-04 00:41:52 +02:00
import { GET_PRELOAD_FILE } from "../shared/IpcEvents";
2023-04-04 01:35:37 +02:00
import { VencordDesktop } from "./VencordDesktop";
contextBridge.exposeInMainWorld("VencordDesktop", VencordDesktop);
2023-03-31 01:21:06 +02:00
2023-04-04 00:41:52 +02:00
require(ipcRenderer.sendSync(GET_PRELOAD_FILE));