From b91cb742b189393dbdb6fec53c23cd285c9463df Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 19 Jul 2024 02:50:24 +0200 Subject: [PATCH] update outdated paths --- src/main/index.ts | 4 +--- src/main/ipcMain.ts | 2 +- src/preload.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 5519d47ac..ba386defc 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -43,11 +43,9 @@ if (IS_VESKTOP || !IS_VANILLA) { } switch (url) { case "renderer.js.map": - case "vencordDesktopRenderer.js.map": case "preload.js.map": - case "vencordDesktopPreload.js.map": case "patcher.js.map": - case "vencordDesktopMain.js.map": + case "main.js.map": cb(join(__dirname, url)); break; default: diff --git a/src/main/ipcMain.ts b/src/main/ipcMain.ts index 62785867e..c9454028a 100644 --- a/src/main/ipcMain.ts +++ b/src/main/ipcMain.ts @@ -131,7 +131,7 @@ ipcMain.handle(IpcEvents.OPEN_MONACO_EDITOR, async () => { autoHideMenuBar: true, darkTheme: true, webPreferences: { - preload: join(__dirname, IS_DISCORD_DESKTOP ? "preload.js" : "vencordDesktopPreload.js"), + preload: join(__dirname, "preload.js"), contextIsolation: true, nodeIntegration: false, sandbox: false diff --git a/src/preload.ts b/src/preload.ts index e79eb02cc..7c61a181d 100644 --- a/src/preload.ts +++ b/src/preload.ts @@ -28,7 +28,7 @@ contextBridge.exposeInMainWorld("VencordNative", VencordNative); // Discord if (location.protocol !== "data:") { // #region cssInsert - const rendererCss = join(__dirname, IS_VESKTOP ? "vencordDesktopRenderer.css" : "renderer.css"); + const rendererCss = join(__dirname, "renderer.css"); const style = document.createElement("style"); style.id = "vencord-css-core";