Implement VencordDesktop, improve tray
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { ipcMain } from "electron";
|
||||
import { app, ipcMain } from "electron";
|
||||
import { join } from "path";
|
||||
import { GET_PRELOAD_FILE } from "../shared/IpcEvents";
|
||||
import { GET_PRELOAD_FILE, RELAUNCH } from "../shared/IpcEvents";
|
||||
import { VENCORD_FILES_DIR } from "./constants";
|
||||
|
||||
ipcMain.on(GET_PRELOAD_FILE, e => {
|
||||
e.returnValue = join(VENCORD_FILES_DIR, "preload.js");
|
||||
});
|
||||
|
||||
ipcMain.handle(RELAUNCH, () => {
|
||||
app.relaunch();
|
||||
app.exit();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user