aboutsummaryrefslogtreecommitdiff
path: root/src/main/ipcMain.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/ipcMain.ts')
-rw-r--r--src/main/ipcMain.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/ipcMain.ts b/src/main/ipcMain.ts
index c86268d..625f24f 100644
--- a/src/main/ipcMain.ts
+++ b/src/main/ipcMain.ts
@@ -138,7 +138,7 @@ ipcMain.handle(IpcEvents.OPEN_MONACO_EDITOR, async () => {
autoHideMenuBar: true,
darkTheme: true,
webPreferences: {
- preload: join(__dirname, "preload.js"),
+ preload: join(__dirname, IS_DISCORD_DESKTOP ? "preload.js" : "vencordDesktopPreload.js"),
contextIsolation: true,
nodeIntegration: false,
sandbox: false