build: split preload & renderer.css into D. desktop / vesktop (#1629)

This commit is contained in:
Justice Almanzar
2023-08-10 22:14:50 +00:00
committed by GitHub
parent 135da2a5f3
commit fa124d8877
10 changed files with 164 additions and 193 deletions

View File

@ -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