- 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:
parent
6dad815d48
commit
312a5a7b70
4 changed files with 28 additions and 13 deletions
|
@ -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")))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue