mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -04:00
Progress
This commit is contained in:
parent
af498e7829
commit
876e622f4f
17 changed files with 289 additions and 34 deletions
|
@ -1,14 +1,10 @@
|
|||
import { contextBridge, webFrame } from "electron";
|
||||
import { readFileSync } from "fs";
|
||||
import { join } from "path";
|
||||
import Vencord from "./Vencord";
|
||||
import VencordNative from "./VencordNative";
|
||||
|
||||
contextBridge.exposeInMainWorld("VencordNative", {
|
||||
getSettings: () => "hi"
|
||||
});
|
||||
contextBridge.exposeInMainWorld("VencordNative", VencordNative);
|
||||
|
||||
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