- Small change to preload to define global.ipcRenderer early.

- Changed BW options and removed redundant options that (I think) are no longer used by the renderer.
- Added launch args to app.ts
This commit is contained in:
Core 2022-01-09 15:24:42 +00:00
parent 6dad815d48
commit 312a5a7b70
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
4 changed files with 28 additions and 13 deletions

View file

@ -45,18 +45,11 @@ export class Win {
frame: false,
title: "Cider",
vibrancy: 'dark',
// transparent: true,
transparent: (process.platform === "darwin"),
hasShadow: false,
webPreferences: {
webviewTag: true,
plugins: true,
nodeIntegration: true,
nodeIntegrationInWorker: false,
webSecurity: false,
allowRunningInsecureContent: true,
enableRemoteModule: true,
sandbox: true,
nativeWindowOpen: true,
contextIsolation: false,
preload: path.join(this.paths.srcPath, './preload/cider-preload.js')
}
@ -133,7 +126,7 @@ export class Win {
app.use(express.static(path.join(this.paths.srcPath, './renderer/')));
app.set("views", path.join(this.paths.srcPath, './renderer/views'));
app.set("view engine", "ejs");
app.use((req, res, next) => {
// @ts-ignore
if (req.url.includes("audio.webm") || (req.headers.host.includes("localhost") && (this.devMode || req.headers["user-agent"].includes("Electron")))) {