Implement VencordDesktop, improve tray

This commit is contained in:
Vendicated
2023-04-04 01:35:37 +02:00
parent f45d6482ac
commit 1c20f35460
6 changed files with 57 additions and 22 deletions

View File

@@ -0,0 +1,9 @@
import { ipcRenderer } from "electron";
import { RELAUNCH } from "../shared/IpcEvents";
export const VencordDesktop = {
app: {
relaunch: () => ipcRenderer.invoke(RELAUNCH)
}
}

View File

@@ -1,4 +1,7 @@
import { ipcRenderer } from "electron";
import { contextBridge, ipcRenderer } from "electron";
import { GET_PRELOAD_FILE } from "../shared/IpcEvents";
import { VencordDesktop } from "./VencordDesktop";
contextBridge.exposeInMainWorld("VencordDesktop", VencordDesktop);
require(ipcRenderer.sendSync(GET_PRELOAD_FILE));