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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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