mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-12 16:13:02 -04:00
Rewrite
This commit is contained in:
commit
af498e7829
11 changed files with 1186 additions and 0 deletions
14
src/preload.ts
Normal file
14
src/preload.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { contextBridge, webFrame } from "electron";
|
||||
import { readFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
import Vencord from "./Vencord";
|
||||
|
||||
contextBridge.exposeInMainWorld("VencordNative", {
|
||||
getSettings: () => "hi"
|
||||
});
|
||||
|
||||
webFrame.executeJavaScript(readFileSync(join(__dirname, "renderer.js"), "utf-8"));
|
||||
|
||||
require(process.env.DISCORD_PRELOAD!);
|
||||
|
||||
window.onload = () => console.log("hi");
|
Loading…
Add table
Add a link
Reference in a new issue